A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: need help

  1. #1

    need help

    I'm trying to create a photo gallery, which has both the option to start and stop a slide show and/or play the next or previous set of pictures. How can I set the movie clips (I use movie clips instead of buttons) to go to the next set of pictures. Of course I could hand code for each and every frame, but it'd be a hell of a lot easier to place it within a function. Something like:

    if(_root.myMovieClip._currentframe==1,2,3,4){
    _root.myMovieClip.gotoAndStop(5);
    }
    if(_root.myMovieClip._currenframe==5,6,7,8,9){
    _root.myMovieClip.gotoAndStop(10);
    }

  2. #2
    Untitled-1.fla strille's Avatar
    Join Date
    Mar 2001
    Location
    Sweden
    Posts
    1,626
    A function that goes to frame 5 if current frame is 1, 2, 3 or 4:
    code:
    if(_root.myMovieClip._currentframe > 0 && _root.myMovieClip._currentframe < 5){
    _root.myMovieClip.gotoAndStop(5);
    }


  3. #3
    tusen tak. du vet inte hur manga timmar att du har sparat mig. tak.

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