Onclick Script

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.
palare98Asked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
AnsariConnect With a Mentor Commented:
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
 
rootdirCommented:
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
 
rootdirCommented:
If you are using publishing your movie then second and third methos are best.

Cheers
RootDir
0
Easily Design & Build Your Next Website

Squarespace’s all-in-one platform gives you everything you need to express yourself creatively online, whether it is with a domain, website, or online store. Get started with your free trial today, and when ready, take 10% off your first purchase with offer code 'EXPERTS'.

 
maishCommented:
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
 
palare98Author Commented:
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
 
palare98Author Commented:
This worked perfectly.  Thanks.
0
 
rootdirCommented:
palare98,

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

Any way nice answer

RootDir
0
 
palare98Author Commented:
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
 
AnsariCommented:
Hi,

Thank you

Ansari
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.