all groups > flash actionscript > february 2006 >
You're in the

flash actionscript

group:

Need Help Here! If frame 13 has been played


Need Help Here! If frame 13 has been played danselstudios
2/3/2006 6:37:07 PM
flash actionscript:
Someone please help me? How do i script an action to check if a certain frame has been played, and if it has to go to another frame( or label) on the _root Timeline????

Re: Need Help Here! If frame 13 has been played zensoldier
2/3/2006 7:12:25 PM
Try

if(_root.yourClip._currentFrame >= 13)
{
gotoAndPlay("yourNewClip");
Re: Need Help Here! If frame 13 has been played danselstudios
2/3/2006 7:45:38 PM
I guess it makes a big difference if I say " if frame 13 has played BEFORE,
then go to and play Another Clip."

what i mean by saying BEFORE---> the viewer has already visited a certain
page (or certain frame label on the _root timeline) when the viewer click on
that specific button to Go Back, instead of showing the viewer the same page,
she is redirected to another page(or clip or frame)

Does anyone has this figured out?


Re: Need Help Here! If frame 13 has been played BeniRose
2/3/2006 7:50:45 PM
My suggestions would be to set a variable say "Viewed13" to false in the first
frame of your movie and in frame 13 (on any layer) add the actionscript
"Viewed13 = true;" That way your variable will become true once frame 13 has
been played. Hope this helped!
Re: Need Help Here! If frame 13 has been played danselstudios
2/3/2006 8:05:35 PM
BeniRose...I believe you answered my question. BUT i don't know how to do it.
would you pass the code?

I would greatly appreciate it. i would gladly return the favor with a design
of some sort..or flash animation.


Re: Need Help Here! If frame 13 has been played danselstudios
2/3/2006 10:38:36 PM
I HAVE FOUND THE ANSWER!!!!!!!!!!!!!!!!!!

FRAME 1 : if (frame15played) {

gotoAndPlay("15");

} else {

gotoAndPlay(2);

}


ON FRAME 15:

frame15played= true


AddThis Social Bookmark Button