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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

window

Status
Not open for further replies.
Downloaded that .fla, and it's empty!
What are you looking to do? Open a pop-up centered in the screen, whatever the resolution?

Regards,
new.gif
 
yes i downloaded it and it is empty, i tryed adding a url to it but it would not work, can you help..thanks
 
Don't know how familiar you are with Flash and javascript, but if you try the following it should work:

In the Flash movie, create a button and add the following action to it:
Code:
on (press) {
    getURL ("javascript:NewWindow('[URL unfurl="true"]http://www.lawnmanagers.com/',500,500)");[/URL]
}
Note: No linebreak between NewWindow and ('http... in the above.

Then in the html in which your movie is embedded add the following java function between the <head> and </head> tags:

<SCRIPT LANGUAGE=&quot;JavaScript&quot;>
<!--
function NewWindow(url,h,w) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=no';
window.open(url,'', winprops);
}
//-->
</SCRIPT>

Note: No linebreak either between winprops and ='height..., and the following line also.

Once you get it working, you can change the size parameters (w & h) on the Flash button, to suit your needs.

Regards,
new.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top