Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
Yes/No Dialog Box
Flash Component Label
Get Font List without using xtras!
Super Goo
TCP UDP Xtra
Giving a shadow for a sprite
Cutting Puzzle Pieces
SMARTSCRIPT
Ripple image when clicked using Imaging Lingo
Cursor trails
 

 

 

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

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail