code:
onEnterFrame = function () {
APause = setInterval(GoBack, 2000);
function GoBack()
{
setProperty(_root.popupBG, _visible, true);
setProperty(_root.buttonNext, _visible, true);
setProperty(_root.skipButton, _visible, false);
clearInterval(APause);
stop();
}
};The above is an actionscript in Frame 1 of the file
boy_instructions.swf.
On enter frame, the
popupBG and
buttonNext will appear after 2 seconds.
When the
buttonNext is click, it will go to the next frame. See the code for
buttonNext below.
code:
on (release) {
setProperty(_root.popupBG, _visible, false);
setProperty(_root.buttonNext, _visible, false);
nextFrame();
}The code for the next frame (Frame 2) is below.
The
popupBG and
nextButton will disappear and
gameinstruc and
okButton will appear.
code:
onEnterFrame = function () {
APause = setInterval(GoBack, 2000);
function GoBack()
{
clearInterval(APause);
setProperty(_root.gameinstruc, _visible, true);
setProperty(_root.okButton, _visible, true);
setProperty(_root.skipButton, _visible, false);
stop();
}
};Everything work fine when I Test Movie at my Flash MX 2004 Professional.
I then put the
boy_instructions.swf file in
boy_instructions.html.
Problem: When I put the .swf file in HTML, instead of stopping after the
popupBG and
buttonNext appear, it go straight to Frame 2 and stop there instead. Why is that so? Please help someone. Thanks!