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
Availability
Flash Player 9
Usage
flipNavigation.blur
Description
Property. Specifies the amount of blur to be added.
Example
myFlipNavigation.blur = 1;
Availability
Flash Player 9
Usage
flipNavigation.defaultType
Description
Property. Specifies a default type of flipping.
Example
myFlipNavigation.defaultType = "random";
Availability
Flash Player 9
Usage
flipNavigation.effectStrength
Description
Property. Specifies the strength of the effect.
Example
myFlipNavigation.effectStrength = 1;
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;
Availability
Flash Player 9
Usage
flipNavigation.horizontalAlign
Description
Property. Specifies the horizontal alignment of images.
Example
myFlipNavigation.horizontalAlign = "center";
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);
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;
Availability
Flash Player 9
Usage
flipNavigation.mouseOverAction
Description
Property. The effect applied to pages on mouse over.
Example
myFlipNavigation.mouseOverAction = "none";
Availability
Flash Player 9
Usage
flipNavigation.mouseOverEffectStrength
Description
Property. The strength of the effect applied to pages on mouse over.
Example
myFlipNavigation.mouseOverEffectStrength = 1;
Availability
Flash Player 9
Usage
flipNavigation.mouseOverFriction
Description
Property. The friction applied to effects on mouse over.
Example
myFlipNavigation.mouseOverFriction = 1;
Availability
Flash Player 9
Usage
flipNavigation.resizePage
Description
Property. Specifies how the page should be resized.
Example
myFlipNavigation.resizePage = "none";
Availability
Flash Player 9
Usage
flipNavigation.selectedId
Description
Property (read-only). The id of the selected image.
Example
trace(myFlipNavigation.selectedId);
Availability
Flash Player 9
Usage
flipNavigation.selectedIndex
Description
Property (read-only). The index of the selected image.
Example
trace(myFlipNavigation.selectedIndex);
Availability
Flash Player 9
Usage
flipNavigation.speed
Description
Property. The speed of the flip effect.
Example
myFlipNavigation.speed = 1;
Availability
Flash Player 9
Usage
flipNavigation.tweenType
Description
Property. Tween type for the flipping effect.
Example
myFlipNavigation.tweenType = "easing";
Availability
Flash Player 9
Usage
flipNavigation.verticalAlign
Description
Property. The verticalAlignment of the images displayed.
Example
myFlipNavigation.verticalAlign = "top";
Availability
Flash Player 9
Usage
flipNavigation.zoomScale
Description
Property. The degree of scaling on zoom.
Example
myFlipNavigation.zoomScale = 1;
Methods
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"});
Availability
Flash Player 9
Usage
flipNavigation.flipNext()
Parameters
none
Description
Method. Flips to the next image.
Example
myFlipNavigation.flipNext();
Availability
Flash Player 9
Usage
flipNavigation.flipPrev()
Parameters
none
Description
Method. Flips to the previous image.
Example
myFlipNavigation.flipPrev();
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);
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");
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");
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");
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
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);
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);
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);
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);
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);
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);
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);
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);