Solved

Onclick Script

Posted on 2001-08-23
9
8,347 Views
Last Modified: 2007-11-27
I would like to use an actionscript that fires when you click on a button that does the equivalent of this javascript:  onclick=window.open("page.html","newpage","toolbar=no,location=no,scrollbars==no,width=700,height=300")
I don't know which actionscript object or function or what to use to accomplish this same output in flash.
0
Comment
Question by:palare98
  • 3
  • 3
  • 2
  • +1
9 Comments
 
LVL 6

Expert Comment

by:rootdir
ID: 6418982
See this link, here author is giving three examples

first is with FSCOMMAND
second is with JAVASCRIPT and GETURL
third is with JAVASCRIPT, GETURL and FRAME

I think you can use first one because you are not publishing that your movie. In first example fscommand
calls javascript routine and then this javascript routine launch desired web page with no border and
no scroll bars. In this example there are limitations, it will not work with NETSCAPE and some version
of IE.

He explained all examples greatly.

This is the link

http://www.moock.org/webdesign/flash/launchwindow/launchwindow.html

If you need any further help post your comment

Cheers
RootDir
0
 
LVL 6

Expert Comment

by:rootdir
ID: 6419001
If you are using publishing your movie then second and third methos are best.

Cheers
RootDir
0
 

Expert Comment

by:maish
ID: 6420989
Hi,
on the actionscript, use this:

GetURL("Javascript:window.open('page.html','newpage','toolbar=no,location=no,scrollbars=no,width=700,height=300')");

that will do.
0
 

Accepted Solution

by:
Ansari earned 100 total points
ID: 6421597
Hi,
1) First you will need to have a button created. You will give your button a get URL action and add in the URL field as:
Javascript:popupwindow( )

2)And then cut and paste the following script  into your HTML between the Title and the Head(as u are generally doing for normal Javascript function).

<script LANGUAGE="JavaScript">
function popupwindow(){
window.open("test.html","","height=425,width=550,menubar=0,resizabl e=0,scrollbars=0,status=0,titlebar=0,toolbar=0,left=0,top=0")
}
</script>

I hope it will help you

Ansari
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:palare98
ID: 6422184
These suggestions look great.  I will try them when I get home from the office.  Is there a way to award points for two different comments here at Experts Exchange?
0
 

Author Comment

by:palare98
ID: 6425033
This worked perfectly.  Thanks.
0
 
LVL 6

Expert Comment

by:rootdir
ID: 6425247
palare98,

 Hay what about my comment? there are three ways to do this.

Any way nice answer

RootDir
0
 

Author Comment

by:palare98
ID: 6425788
RootDir,
Your comments were good too.  I was able to use the other suggestion easier.  Is there any way to accept more than one answer in the future?
Palare
0
 

Expert Comment

by:Ansari
ID: 6427554
Hi,

Thank you

Ansari
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now