A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Figure this one out

  1. #1

    Figure this one out

    Can someone out there take a look through this script and see if something's out of whack. I've been working on it for hours, troubleshooting, trying to find out what's wrong and I can't figure it out. I've retyped the code and still nothing. It belongs to a "next" movie clip, which has a photo gallery go to the next set of images. The "previous" movie clip works perfect, but I can't get this one figured out. Thanks for any help. I've also uploaded the .fla file if you want to take a look.

    _root.myMovieClip.myMovieClipChild.onRelease=funct ion(){
    if(_root.myMovieClip._currentframe>0 && _root.myMovieClip._currentframe<5){
    _root.myMovieClip.gotoAndStop(5);
    }
    if(_root.myMovieClip._currentframe>4 && _root.myMovieClip._currentframe<10){
    _root.myMovieClip.gotoAndStop(10);
    }
    if(_root.myMovieClip._currentframe>9 && _root.myMovieClip._currentframe<15){
    _root.myMovieClip.gotoAndStop(15);
    }
    if(_root.myMovieClip._currentframe>14 && _root.myMovieClip._currentframe<20){
    _root.myMovieClip.gotoAndPlay(1);
    }
    }

  2. #2
    Untitled-1.fla strille's Avatar
    Join Date
    Mar 2001
    Location
    Sweden
    Posts
    1,626
    Try:
    code:
    _root.myMovieClip.myMovieClipChild.onRelease=funct  ion(){
    if(_root.myMovieClip._currentframe>0 && _root.myMovieClip._currentframe<5){
    _root.myMovieClip.gotoAndStop(5);
    } else if(_root.myMovieClip._currentframe>4 && _root.myMovieClip._currentframe<10){
    _root.myMovieClip.gotoAndStop(10);
    } else if(_root.myMovieClip._currentframe>9 && _root.myMovieClip._currentframe<15){
    _root.myMovieClip.gotoAndStop(15);
    } else if(_root.myMovieClip._currentframe>14 && _root.myMovieClip._currentframe<20){
    _root.myMovieClip.gotoAndPlay(1);
    }
    }


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center