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

Click Flash Button, it calls html file?

Status
Not open for further replies.

Samoyed

Programmer
Jul 13, 2001
17
CA
Hi,

I'm just curious if this is possible, and if so what the actionscript code is. I have a folder called One. In this folder is my swf file called One.swf I also have a html file called Two.html If I click a button in One.swf, is there a way that the swf file closes and loads Two.html? Would it be better if I publish One.swf into an html file instead? This is really baffling me.

Thx in advance.

Samoyed
 
On your button in One.swf you add the following actionscript

Code:
on(release){
    getURL("two.html");
}

That will cause the two.html page to be loaded in the same browser window that the flash movie was in (effectively "closing" the flash movie).

Hope it helps.

Wow JT that almost looked like you knew what you were doing!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top