dcsimg
A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: goto and play nextframe?

  1. #1

    goto and play nextframe?

    ok dumb question
    but i cant seem to find it either in the help file or in my book.

    whats the syntax for having a button cause the playhead to go to and play the next frame

    nextFrame(); stops the playhead

    thanks

    shoeshine

  2. #2
    Member
    Join Date
    May 2002
    Location
    USA.me._x = 18; _y = 36;
    Posts
    79

    looks like you got it.

    it should just be

    Code:
     on(release){
           nextFrame();
     }
    ...or for a movie clip instance...

    Code:
     
    yourMovieClip.nextFrame();
    let me know if that doesn't work.
    Last edited by bitblender; 06-28-2004 at 02:46 AM.
    <fp>

  3. #3
    tunnel vision Adixx's Avatar
    Join Date
    Apr 2001
    Location
    nomad
    Posts
    398
    This functions moves player head to next frame and stops.

    nextFrame();


    Just use this to move playerhead to the next frame and continue playing... change the frame number of course 2 or whatever.

    gotoAndPlay(2);
    Freebies:
    Sound Loops | Sound Effects | Images | Code Pigs | 6ood coff33


    The marvel of all history is the patience with which men and women submit to burdens unnecessarily laid upon them by their governments.

  4. #4
    Thanks all

    but my problem is that i have a timeline that has about a gazillion stops on it.

    i want to create a button that whenever pushed starts the playhead moving down the main timeline again.

    -------Just use this to move playerhead to the next frame and continue playing... change the frame number of course 2 or whatever.

    I would prefer to have a button script that works wherever the playhead is. rather than tie it to a specific frame number

    It seems that this has GOT to be possible I just cant figure out the right script

    thanks again

    Shoeshine

  5. #5
    ReMember jennyj's Avatar
    Join Date
    Feb 2003
    Location
    UK
    Posts
    549
    code:

    gotoAndPlay(_currentframe+1)



    JennyJ

  6. #6
    Legendary Super Hero Flashsaga's Avatar
    Join Date
    Jul 2003
    Location
    Earth (Temporarily)
    Posts
    335
    _root.play();

    would also work

  7. #7
    prince of plasma
    Join Date
    Nov 2003
    Location
    Mexico
    Posts
    103
    on(release){
    play();
    }

  8. #8
    You again?!?!?! gunko2's Avatar
    Join Date
    Jun 2004
    Location
    Israel
    Posts
    171
    like this:
    just write on your button:

    Code:
    on(release){
       nextFrame();
    }
    and on the next frame write:
    Code:
    play();

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