qnx.fuse.ui.skins.animation.CrossfadeTransition

CrossfadeTransition

Methods | Events


Packageqnx.fuse.ui.skins.animation
Classpublic class CrossfadeTransition
InheritanceCrossfadeTransition Inheritance flash.events.EventDispatcher
Implements ITransition

A transition that crossfades from one skin to the other.

Class information:
BlackBerry 10 Version:   10.0.0



Public Methods

 MethodDefined By
  
CrossfadeTransition(duration:Number = -1)
Creates a new CrossfadeTransition
CrossfadeTransition
  
complete():void
Sets the alpha of the new skin to 1 and the alpha of the old skin to 0.
CrossfadeTransition
  
execute(currentSkin:DisplayObject, nextSkin:DisplayObject):void
CrossfadeTransition

Events

 Event Summary Defined By
  Dispatched when the transition is complete.CrossfadeTransition

Constructor Detail

CrossfadeTransition()


public function CrossfadeTransition(duration:Number = -1)

Creates a new CrossfadeTransition

Parameters

duration:Number (default = -1) — The duration of the transition. If no duration is passed in then the standard duration of 0.3 seconds is used.

Method Detail

complete()


public function complete():void

Sets the alpha of the new skin to 1 and the alpha of the old skin to 0.

See also

ITransition.complete

execute()


public function execute(currentSkin:DisplayObject, nextSkin:DisplayObject):void

Parameters

currentSkin:DisplayObject — The skin to transition from.
nextSkin:DisplayObject — The new skin to transition to.

Event Detail

complete


Event Object Type: flash.events.Event
Event.type property = flash.events.Event.COMPLETE

Dispatched when the transition is complete.





comments powered by Disqus