TweenEvent

Kind of class:public class
Package:org.casalib.events
Inherits from:Event
Dispatched by:
Version:10/27/08
Author:Mike Creighton, Aaron Clinger
Classpath:org.casalib.events.TweenEvent
File last modified:Wednesday, 31 December 2008, 20:18:28
An event dispatched from Tween.

Summary


Constructor
  • TweenEvent (type:String, bubbles:Boolean = false, cancelable:Boolean = false)
    • Creates a new TweenEvent.
Constants
Instance properties
  • position : Number
    • The current position of the tween.
  • progress : Percent
    • The percent completed of the tween's duration.
Instance methods

Constructor

TweenEvent

public function TweenEvent (
type:String, bubbles:Boolean = false, cancelable:Boolean = false)

Creates a new TweenEvent.
Parameters:
type :
The type of event.
bubbles :
Determines whether the Event object participates in the bubbling stage of the event flow.
cancelable:
Determines whether the Event object can be canceled.

Constants

COMPLETE

public static const COMPLETE:String = 'complete'
(read)

RESUME

public static const RESUME:String = 'resume'
(read)

START

public static const START:String = 'start'
(read)

STOP

public static const STOP:String = 'stop'
(read)

UPDATE

public static const UPDATE:String = 'update'
(read)

Instance properties

position

public position:Number
(read,write)

The current position of the tween.

progress

public progress:Percent
(read,write)

The percent completed of the tween's duration.

Instance methods

clone

override public function clone (
) : Event

Returns:
  • Duplicates an instance of the event.
Overrides:
  • Event.clone

toString

override public function toString (
) : String

Returns:
  • A string containing all the properties of the event.
Overrides:
  • Event.toString