PDA

View Full Version : Flash MX actionscript Help



Pinkz
19-05-2011, 03:03 AM
Okay, i know this is probably very obvious, but here's my problem:

I have a button with the action script:
on (release) {
I=2;
this.Rations.nextFrame();
}

And then a Movieclip with action script:

onClipEvent (load) {
if (I == 2) {
gotoAndPlay(2);
}
}

But the movieclip won't go to frame 2 after button has been clicked.

Please help, and thank you :)

utopian201
19-05-2011, 11:07 AM
Hi
What is the I variable used for?
I dont have the reference in front of me, but can you do something like
this.Rations.gotoAndPlay(2)

In your movie clip, just have stop on load.