Click to See Complete Forum and Search --> : Flash Presentation Help


freznel
02-05-2009, 03:35 PM
On loading of my flash presentation I would like for the presentation to pause on the first frame. The following code in the past when the first slide only had two frames worked great, but I have added a third frame and the code stops the movie on the last frame of the slide instead of the first. What is going on and how can I fix it?

Thanks!



on (reveal) {

// Transition behavior
if (!eventObj.target._isSlide || (eventObj.target._isSlide && eventObj.target.currentSlide)) {
mx.transitions.TransitionManager.start (eventObj.target,
{type:mx.transitions.Fade,
direction:0, duration:0.5, easing:mx.transitions.easing.None.easeNone,
param1:empty, param2:empty});

eventObj.target.__transitionManager._triggerEvent = eventObj.type;
}
// End Transition behavior
}
on (hide) {

// Transition behavior
if (!eventObj.target._isSlide || (eventObj.target._isSlide && eventObj.target.currentSlide)) {
mx.transitions.TransitionManager.start (eventObj.target,
{type:mx.transitions.Fade,
direction:1, duration:0.5, easing:mx.transitions.easing.None.easeNone,
param1:empty, param2:empty});

eventObj.target.__transitionManager._triggerEvent = eventObj.type;
}
// End Transition behavior
}
onClipEvent (enterFrame) {
stop();
}

aikepah
02-05-2009, 06:37 PM
On the first frame of the presentation you should be able to just put in the actionscript, stop()

That should be the only thing you need to make it not play anymore frames. You shouldn't need the onClipEvent part...

freznel
02-05-2009, 07:38 PM
I attempted to remove the added lines of code from the slide code and I get a looping movie. If I add the stop () command to the first slide of the presentation, the presentation plays through the entire slide then loops and stops afterwards. Any ideas?