|
|
|
Play Backward Until Marker and Jump
Added on 3/12/2003
|
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
|
|