(Flash 5)
Hi all is there a way to have instead of this code which is in a button:
[AS] if (_root.main._currentframe == 25) {
tellTarget ("_root.main") {
play ();
}
if (_root.main._currentframe == 55) {
tellTarget ("_root") {
gotoAndPlay (35);
}
}
[/AS]
I can see why it does not work beause I have told that mc to play and the action to see if it has reached frame 55 was actioned before it reaches frame 55.
I need something like this:
[AS] if (_root.main._currentframe == 25) {
tellTarget ("_root.main") {
play ();
}
when (_root.main._currentframe == 55) {
tellTarget ("_root") {
gotoAndPlay (35);
}
}
[/AS]
So basically is there action script to say, when an mc reaches a certain frame go and do something else from a button.
Hope it makes sense
Thanks
kev