Groups | Blog | Home
all groups > flash actionscript > february 2004 >

flash actionscript : How can I play-replay a movie?


Ceti
2/1/2004 5:03:27 PM

I have a button the plays the movie from the current frame. play()

After the movie reaches the end I expect the button pressed to return to fame 1 and replay. It returns to frame 1 but doesn't play. The user must repress the button again.

This code doesn't work either.
on release {
if (_currentframe > 300) {
gotoAndPlay(1);
play(1);
} else {
play();
}
}

I need to make this button pressing intuitive, press once and plays, press once and replays if ended?


eonyron
2/1/2004 9:22:48 PM
It's hard to tell but mabey a level issue? Add or delete _root or the name of the specific mc?

on release {
if (mc._currentframe > 300) {
_root.mc.gotoAndPlay(1);
} else {
_root.mc.gotoAndPlay(mc._currentframe);
}
}


Jorge Braccini
2/3/2004 8:07:45 PM
i don't understand what you wanna do...

best regards
--
Jorge Braccini
www.entersystemscorp.com
Media Interface Developer

AddThis Social Bookmark Button