-
Restart SWF
Hi everybody !
how can i restart my swf when i press one botton ?
Code:
function clearBtn(e:Event):void
{
// Restart swf
}
Thanks !
-
have you tried goToAndPlay(1)?
(Assuming, of course, your SWF starts at frame 1).
-
Originally Posted by Guilhermedidi
have you tried goToAndPlay(1)?
(Assuming, of course, your SWF starts at frame 1).
How does the method goThoAndPlay use?
Sorry but I'm not very practice in ActionScript !
I traied so :
Code:
function clearBtn(e:Event):void
{
goToAndPlay(1);
}
but ... i have a error of compilation "code 1180"
Thanks !
-
emh ... my SWF is code-based
-
sorry acer, I misspelled it. try gotoAndPlay(1).
(the T in 'to' is not capital)
Last edited by Guilhermedidi; 03-01-2011 at 10:46 AM.
-
There aren't any errors of compilation but it doesn't work!
Is there a method to refresh the html page which contains my swf ?
P.S.
How i can see the frame's number of my Clip ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|