Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: help with frame play()
From: DRMRLPLS
Date: Sat, 20 Jan 2001 20:31:18 -0000

I have this script to control page transitions and Flash is doing some
strange stuff. The script goes to a page, gets its frame number and then
issues a play to the following frame where the transition starts. It works
fine if I allow each transition to complete and stop on it's own at the next
"page"n label, but if I hit the button during the transition the play head
just stops on the (curFrame+1) frame but won't play. That is why I added the
first stop so the play action doesn't get confused or cancel itself out.

Here's the kicker: I put the last line of code on a separate button and if I
trigger it follwing this script it works fine every time. Please help!!
button script:
on (release){
_level0.stop();
_level0.gotoAndStop("page"+(_root.curPage));
_root.curFrame = _level0._currentframe;
_level0.gotoAndPlay((_root.curFrame)+1);
}
on a separate button:
_level0.gotoAndPlay((_root.curFrame)+1);

Andrew



[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]