# Flash 8 Presentation - Stop on 1st Frame of slide

**URL:** https://forum.kirupa.com/t/flash-8-presentation-stop-on-1st-frame-of-slide/281194
**Category:** flash
**Created:** [February 5, 2009, 10:34pm UTC](https://forum.kirupa.com/t/flash-8-presentation-stop-on-1st-frame-of-slide/281194 "2009-02-05T22:34:21Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![freznel](https://avatars.discourse-cdn.com/v4/letter/f/67e7ee/32.png) [@freznel](https://forum.kirupa.com/u/freznel)
#### Post date: [February 5, 2009, 10:34pm UTC](https://forum.kirupa.com/t/flash-8-presentation-stop-on-1st-frame-of-slide/281194/1 "2009-02-05T22:34:21Z")

</div>

I am building a presentation and am having a problem stopping the movie on the first frame of the slide when it loads. Following is the code that I am using. This code was working well when I had two frames on the slide, but I have added a third frame and now it stops on the second frame instead of the first. What could cause the one frame advance? Also, what can I do to correct it so that the movie will stop on the first frame?

Thanks!

```auto

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();
} 

```
