Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Text Box Xtra
Large Integer and Base Conversion Integer Parent Script
GetPixelColour
Inverse Sine
Set Volume - Buddy API
Correct Flashpaper in Director
Useful string functions
Convert Decimal to Comma (EU)
CD-ROM Drive Letter Finder-Using a File
VSnap
MediaMacros Xtras Mall
 

 

 

Behavior Play Backward Until Marker and Jump

Added on 3/12/2003

 

Compatibilities:
D8 D8_5 D9 Mac PC

This item has not yet been rated

Author: CySpawn

This is a dream tool that help you to create a reverse secuense on parts of your movie by a MouseUp on a sprite member, saving a lot of your time and saving Kbs on your movie. Just put this behavior on a sprite member, create a marker where to back and a marker to jump later.

-- Play Backward Until Marker and Jump
-- By Johann Espejo (Caracas - Venezuela)
-- Description:
-- This is a dream tool that help you to create a reverse secuense on parts of your movie by a MouseUp on a sprite member, saving a lot of your time and saving Kbs on your movie.
-- Just put this behavior on a sprite member, create a where marker to back and a marker to jump later.
-- The soft motion depend on the number of member on stage, If you dont get a soft motion, decrease the Tick Value on dialog box.
-- Feel free to use it, modify it, and ask me about it. If you find this code useful please let me know.
-- jespejo@cantv.net
--------
on getBehaviorToolTip
  return "Play the Flash movie backward until a specify marker is encounter and then jump to another specify final marker"
end getBehaviorToolTip


--Code
property myBackFrame, myFinalFrame, myBackwardRate, myTickValue


on mouseUp me
  BackUntil = marker(myBackFrame) + 1
  BackRate = (myTickvalue) / (myBackwardRate)
  repeat with x = (the frame) down to BackUntil
    startTimer
    repeat while the timer < BackRate
    end repeat
    go to (the frame - 1)
    updatestage
  end repeat
  go to marker(myFinalFrame)
end mouseUp

on getPropertyDescriptionList me
  set description = [:]
  addProp description, #myBackFrame, [#comment: "Play Backward Until Which Marker ?" ,#format:#Marker,#default:1]
  addProp description, #myFinalFrame, [#comment: "Then, Jump to Which Marker?" ,#format:#Marker,#default:1]
  addProp description, #myBackwardRate, [#comment: "Backward Rate: (frames per second)" ,#format:#integer,#range:[#min:1,#max:120],#default:15]
  addProp description, #myTickValue, [#comment: "Tick Value: (decrease only if you dont get a soft motion)" ,#format:#integer,#range:[60,55,50,45,40,35,30,25,20,15,10,5,0],#default:60]
  return description
end getPropertyDescriptionList

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail