Help with if/then actions

Hey everyone,

I need some help with my if/then actions.

I am wanting to be able to use the if/then actions to do something like this:

if [movie clip] Content1 [is at frame label] remove, goto frame 5
So basically, if the movie clip titled ‘Content1’ is at the frame labeled ‘remove’, it will goto frame 5 of the current scene.

What would the actionscript be for this?

Thanks,

Nick

there’s no way you can get a frame label, you’ll have to use the _currentframe (returns the frame number). :-\

if (myMovieClip._currentframe == 29) gotoAndPlay(5);

or you could set a variable in the MovieClip, let’s call it _framelabel. :slight_smile:

at frame 29 (or whatever frame), you’d have this script:

_framelabel = "remove";

then you can use:

if (myMovieClip._framelabel == "remove") gotoAndPlay(5);

=)

Wow, that was really helpful…Thanks a ton :slight_smile:

-Nick

no problem. :wink: