Constructors

Properties

Methods

FaderFileMaterial class

FaderFileMaterial

extends Sprite

 

 

Overview

Description

Fades MovieClips on given delay; This Class differs from the Fader Class as this loads the external file and animates it Using the Fader Class its easy to create SlideShow or of Fade animation

Constructors

 

FaderFileMaterial

Usage

public function FaderFileMaterial( faderItems:*, delay:Number, repeat:Boolean )

Description

Constructor

Parameters

faderItems
Contains the DisplayObject to be animated
delay
is the time duration between animations
repeat
accepts boolean to repeat/stop animation once complete.

Properties

 

_index

Usage

static var _index:Number

Description

Indicates the current animation index.

Default

0
 

_faderItems

Usage

private var _faderItems:*

Description

Contains the external URL of objects to be animated one after the another.
 

loaderPercentage

Usage

public var loaderPercentage:Number

Description

contains the loaded percentage of current Item

Default

0

Methods

 

start

Usage

public function start()

Description

Starts the Animation if Timer is stoped and checks whether the current object is initial Else Sets less Delay

Returns

Nothing
 

stop

Usage

public function stop()

Description

Stops the Fader Animation

Returns

Nothing
 

completeHandler

Usage

private function completeHandler( e:TimerEvent = null ):void

Description

Fades the Object and Dispatches Events IF TimerEvent:e == null indicates the animation of first Object Stops the process and Loads the file from the URL supplied

Returns

Nothing
 

nextItem

Usage

private function nextItem():String

Description

Retrieves a fileURL contained in the _faderItems, by index.

Returns

A URL to load
 

imageLoadedProgress

Usage

private function imageLoadedProgress( event:ImageLoaderEvent ):void

Description

Handles the ImageLoadProcess and dispatches the FaderEvent

Returns

Nothing
 

imageLoadedComplete

Usage

private function imageLoadedComplete( event:ImageLoaderEvent ):void

Description

Handles the ImageLoadComplete and dispatches the FaderEvent and fades the current item removes the display object if reaches the limit Stops the animation process if repeat is not set

Returns

Nothing