dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: How do I script the timeline to play backwards?

  1. #1
    Senior Blender blastbum's Avatar
    Join Date
    Oct 2002
    Location
    Sydney, Australia
    Posts
    276

    How do I script the timeline to play backwards?

    Hi,

    I'm trying to put a reverse fade on a button once you roll the mouse off it. I know how to get the button to fade in when the mouse rolls over it and I would really love it if someone could help me to script the timeline to play backwards so the "fade in" will "fade out".

    Thanks.

    LOVE YOUR WORK!!!!!!!!!

    Blastbum

  2. #2
    half as fun, double the price senocular's Avatar
    Join Date
    Feb 2002
    Location
    San Francisco, CA (USA)
    Posts
    4,361
    onClipEvent(enterFrame){
    prevFrame();
    }

    that will play a clip backwards.If you are using buttons to control this clip you can use them to set a variable for it and use that variable to determine its direction.

    onClipEvent(enterFrame){
    if (playingBackwards) prevFrame();
    }

    on(rollOver){
    animationMC.playingBackwards = false
    animationMC.play();
    }
    on(rollOver){
    animationMC.playingBackwards = true
    }

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