I would like to loop my movie 3 times and open a local .html file in flash using action script 3. If I added a button I know how to do that but not just loop and open?
Thanks
Mthappy
I would like to loop my movie 3 times and open a local .html file in flash using action script 3. If I added a button I know how to do that but not just loop and open?
Thanks
Mthappy
For that, you can create a counter in the 1st frame of your movieclip and at the last one you have just to increment it until 3, then you can open your html page (link) using navigateToURL
.
1st frame :
// we create our counter var only if it didn't already exist (null)
if(!counter){
var counter:int = 0;
}
last frame :
counter ++;
if(counter == 3){
navigateToURL(new URLRequest('page.html'), '_blank');
}
Hope that can help you.