Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

loading sized windows (javascript??)

Status
Not open for further replies.

aaronzimmer

Programmer
Aug 19, 2003
24
US
Another dumb question...

When creating a link from my flash movie to a new window, how do I specify whether or not the new window has directories, menubars, scrollbars, ect., as well as the size of the new window?

I know how to do this in HTML using javascript, but how do I make it work in the Flash movie?

Thanks!!!!!
 
It's exactly the same code that you would use normally - either put the javascript as a function in the head of the html page and call it from Flash like this:

getURL(javascript:doWindow(parameters));

or you can launch the whole window from Flash like this:

Code:
getURL("javascript:newWin = window.open ('newFile.swf', 'portfolio', 'width=940,height=680'); newWin.focus ();");

..all of the options you want to add/remove can be set in this statement.
 

Regards,

cubalibre2.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top