A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: Reverse the MC

  1. #1
    Member
    Join Date
    Jun 2003
    Posts
    41

    Reverse the MC

    What could be added to this code to keep the MC playing in reverse instead of moving back just one frame while the mouse is over the button?

    on (rollOver) {
    if (_currentframe>1) {
    prevFrame();
    }
    }
    on (rollOut) {
    stop();
    }


    Thank you,
    JF

  2. #2
    hmm checked my code... hot-fix

    on a one-time startup condition (ie on loadframe, first frame of mc etc)
    code:

    _root.actions.reverse=0;



    on the buton
    code:

    on (rollover){
    _root.actions.reverse=1;
    {

    on (rollout){
    _root.actions.reverse=0;
    }



    in actions mc:

    code:

    if (_root.actions.reverse==1){
    if (_currentframe>1){
    prevframe();
    }
    }


    prevframe();
    Last edited by FlashInnovation; 07-31-2003 at 10:46 PM.

  3. #3
    Member
    Join Date
    Jun 2003
    Posts
    41
    Thank you for the help, but I still am missing something. (I am going out of my mind) Based on your ActionScript I made this Flash file. Could you take a look and let me know what is wrong with the reverse button?

    Thank you,
    JF
    Attached Files Attached Files

  4. #4
    Senior Member
    Join Date
    Oct 2000
    Location
    Jersey Shore | USA
    Posts
    294

  5. #5
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    Check http://can_info_guide.tripod.com/
    menu, components and download the framerate component. Not only can you set a framerate independent from the movie but you can also set that the movie runs backwards.
    - The right of the People to create Flash movies shall not be infringed. -

  6. #6
    Senior Member
    Join Date
    Oct 2000
    Location
    Jersey Shore | USA
    Posts
    294
    cancerinform: Is that for MX ?

  7. #7
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    yes, it's a component.
    - The right of the People to create Flash movies shall not be infringed. -

  8. #8
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,449
    Hi johnfreyman,

    I don't know you have your fla working but I got it working.
    - The right of the People to create Flash movies shall not be infringed. -

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