Actionscript 3 Reference

Properties

blur
defaultType
effectStrength
friction
horizontalAlign
inited
maskComp
mouseOverAction
mouseOverEffectStrength
mouseOverFriction
resizePage
selectedId
selectedIndex
speed
tweenType
verticalAlign
zoomScale

 

Methods

addPage
flipNext
flipPrev
flipTo
flipToId
loadPage
removePage
removePageIndex

 

Events

INIT
FLIP
FLIP_FINISH
LOAD_PAGE
LOAD_PROGESS_PAGE
LOAD_XML_FAILED
PAGE_PRESS
PAGE_RELEASE

 

 

 

 

 

Properties

 

blur

Availability
Flash Player 9

Usage
flipNavigation.blur

Description
Property. Specifies the amount of blur to be added.

Example

myFlipNavigation.blur = 1;

 

defaultType

Availability
Flash Player 9

Usage
flipNavigation.defaultType

Description
Property. Specifies a default type of flipping.

Example

myFlipNavigation.defaultType = "random";

 

effectStrength

Availability
Flash Player 9

Usage
flipNavigation.effectStrength

Description
Property. Specifies the strength of the effect.

Example

myFlipNavigation.effectStrength = 1;

 

friction

Availability
Flash Player 9

Usage
flipNavigation.friction

Description
Property. Specifies the amount of friction to apply if using the bounce effect.

Example

myFlipNavigation.friction = 1;

 

horizontalAlign

Availability
Flash Player 9

Usage
flipNavigation.horizontalAlign

Description
Property. Specifies the horizontal alignment of images.

Example

myFlipNavigation.horizontalAlign = "center";

 

inited

Availability
Flash Player 9

Usage
flipNavigation.inited

Description
Property (read-only). Returns true if the component has been properly initialized, otherwise returns false.

Example

trace(myFlipNavigation.inited);

 

maskComp

Availability
Flash Player 9

Usage
flipNavigation.maskComp

Description
Property. Determines whether the component should be masked by its own width and height (true) or not (false).

Example

myFlipNavigation.maskComp = true;

 

mouseOverAction

Availability
Flash Player 9

Usage
flipNavigation.mouseOverAction

Description
Property. The effect applied to pages on mouse over.

Example

myFlipNavigation.mouseOverAction = "none";

 

mouseOverEffectStrength

Availability
Flash Player 9

Usage
flipNavigation.mouseOverEffectStrength

Description
Property. The strength of the effect applied to pages on mouse over.

Example

myFlipNavigation.mouseOverEffectStrength = 1;

 

mouseOverFriction

Availability
Flash Player 9

Usage
flipNavigation.mouseOverFriction

Description
Property. The friction applied to effects on mouse over.

Example

myFlipNavigation.mouseOverFriction = 1;

 

resizePage

Availability
Flash Player 9

Usage
flipNavigation.resizePage

Description
Property. Specifies how the page should be resized.

Example

myFlipNavigation.resizePage = "none";

 

selectedId

Availability
Flash Player 9

Usage
flipNavigation.selectedId

Description
Property (read-only). The id of the selected image.

Example

trace(myFlipNavigation.selectedId);

 

selectedIndex

Availability
Flash Player 9

Usage
flipNavigation.selectedIndex

Description
Property (read-only). The index of the selected image.

Example

trace(myFlipNavigation.selectedIndex);

 

speed

Availability
Flash Player 9

Usage
flipNavigation.speed

Description
Property. The speed of the flip effect.

Example

myFlipNavigation.speed = 1;

 

tweenType

Availability
Flash Player 9

Usage
flipNavigation.tweenType

Description
Property. Tween type for the flipping effect.

Example

myFlipNavigation.tweenType = "easing";

 

verticalAlign

Availability
Flash Player 9

Usage
flipNavigation.verticalAlign

Description
Property. The verticalAlignment of the images displayed.

Example

myFlipNavigation.verticalAlign = "top";

 

zoomScale

Availability
Flash Player 9

Usage
flipNavigation.zoomScale

Description
Property. The degree of scaling on zoom.

Example

myFlipNavigation.zoomScale = 1;

 

 

 

 

 

Methods

 

addPage

Availability
Flash Player 9

Usage
flipNavigation.addPage()

Parameters
item: an item to add to the component.

Description
Method.

Example

myFlipNavigation.addPage({id:"img1", url:"image1.jpg", type:"horizontal"});

 

flipNext

Availability
Flash Player 9

Usage
flipNavigation.flipNext()

Parameters
none

Description
Method. Flips to the next image.

Example

myFlipNavigation.flipNext();

 

flipPrev

Availability
Flash Player 9

Usage
flipNavigation.flipPrev()

Parameters
none

Description
Method. Flips to the previous image.

Example

myFlipNavigation.flipPrev();

 

flipTo

Availability
Flash Player 9

Usage
flipNavigation.flipTo(index number)

Parameters
index: The index number of the image to flip to.

Description
Method. Flips to the specified image index number.

Example

myFlipNavigation.flipTo(3);

 

flipToId

Availability
Flash Player 9

Usage
flipNavigation.flipToId(id)

Parameters
id: The id name of the image to flip to (string).

Description
Method. Flips to the specified image id.

Example

myFlipNavigation.flipToId("about");

 

loadPage

Availability
Flash Player 9

Usage
flipNavigation.loadPage()

Parameters
page: image to load into the component.

Description
Method. Loads an image straight into the component.

Example

myFlipNavigation.loadPage("page.jpg");

 

removePage

Availability
Flash Player 9

Usage
flipNavigation.removePage()

Parameters
id: the id of the page to be removed.

Description
Method. Removes a page from the component.

Example

myFlipNavigation.removePage("img2");

 

removePageIndex

Availability
Flash Player 9

Usage
flipNavigation.removePageIndex()

Parameters
index: the index of the page to be removed.

Description
Method. Removes a page from the component.

Example

myFlipNavigation.removePageIndex(2);

 

 

 

 

 

Events

 

INIT

Availability
Flash Player 9

Usage
FlipNavigation.INIT

Description
Event. Triggered when the component initializes.

Example

import com.flashloaded.as3.FlipNavEvent;

function eventHandler(eo:FlipNavEvent):void {

    trace(eo);
}
myFlipNavigation.addEventListener(FlipNavEvent.INIT, eventHandler);

 

FLIP

Availability
Flash Player 9

Usage
FlipNavigation.FLIP

Description
Event. Triggered when the component flips an image.

Example

import com.flashloaded.as3.FlipNavEvent;

function eventHandler(eo:FlipNavEvent):void {

    trace(eo);
}
myFlipNavigation.addEventListener(FlipNavEvent.FLIP, eventHandler);

 

FLIP_FINISH

Availability
Flash Player 9

Usage
FlipNavigation.FLIP_FINISH

Description
Event. Triggered when the flip effect completes.

Example

import com.flashloaded.as3.FlipNavEvent;

function eventHandler(eo:FlipNavEvent):void {

    trace(eo);
}
myFlipNavigation.addEventListener(FlipNavEvent.FLIP_FINISH, eventHandler);

 

LOAD_PAGE

Availability
Flash Player 9

Usage
FlipNavigation.LOAD_PAGE

Description
Event. Triggered when a page is loaded.

Example

import com.flashloaded.as3.FlipNavEvent;

function eventHandler(eo:FlipNavEvent):void {

    trace(eo);
}
myFlipNavigation.addEventListener(FlipNavEvent.LOAD_PAGE, eventHandler);

 

LOAD_PROGRESS_PAGE

Availability
Flash Player 9

Usage
FlipNavigation.LOAD_PROGRESS_PAGE

Description
Event. Triggered periodically as parts of a page are loaded.

Example

import com.flashloaded.as3.FlipNavEvent;

function eventHandler(eo:FlipNavEvent):void {

    trace(eo);
}
myFlipNavigation.addEventListener(FlipNavEvent.LOAD_PROGRESS_PAGE, eventHandler);

 

LOAD_XML_FAILED

Availability
Flash Player 9

Usage
FlipNavigation.LOAD_XML_FAILED

Description
Event. Triggered if the XML file fails to load.

Example

import com.flashloaded.as3.FlipNavEvent;

function eventHandler(eo:FlipNavEvent):void {

    trace(eo);
}
myFlipNavigation.addEventListener(FlipNavEvent.LOAD_XML_FAILED, eventHandler);

 

PAGE_PRESS

Availability
Flash Player 9

Usage
FlipNavigation.PAGE_PRESS

Description
Event. Triggered when the mouse button is pressed over an image.

Example

import com.flashloaded.as3.FlipNavEvent;

function eventHandler(eo:FlipNavEvent):void {

    trace(eo);
}
myFlipNavigation.addEventListener(FlipNavEvent.PAGE_PRESS, eventHandler);

 

PAGE_RELEASE

Availability
Flash Player 9

Usage
FlipNavigation.PAGE_RELEASE

Description
Event. Triggered when the mouse button is released over an image.

Example

import com.flashloaded.as3.FlipNavEvent;

function eventHandler(eo:FlipNavEvent):void {

    trace(eo);
}
myFlipNavigation.addEventListener(FlipNavEvent.PAGE_RELEASE, eventHandler);