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

BUTTON TO REFRESH

Status
Not open for further replies.

mrkobby

Programmer
Aug 22, 2002
27
US
have made a simple interactive game in flash mx and at the end I want a reset button to either reset the game or refresh the page.how do i give this button their actions?
thanx
 
You could try a getURL with a call to the original html in which the game.swf is embedded, re-load the game.swf on _level0, or maybe make a call to a javascript function that would simulate a "refresh", as if you had hit the refresh button of the browser window...
Something like...

onclick="location.reload()"; Regards,

oldman3.gif
 
So I should make a new layer with actions for the button or should I give the button these actions?I'll try it and let you know.
Thanx
 
I tried the new layer with buttons and it worked but about the onclick="location.reload()"; how will I do it?
Thanx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top