Actionscript 2 Reference
Properties
blur
defaultType
effectStrength
friction
height
horizontalAlign
mask
mouseOverAction
preloadSet
showPreloader
tweenType
verticalAlign
width
xmlURL
Methods
addItem
flipPrev
flipNext
flipTo
flipToId
getItems
getPageData
loadXML
removeItem
removeItemById
zoom
zoomOut
Events
onFlip
onFlipFinish
onFlipStart
onInit
onLoadPage
onLoadProgressPage
onLoadXMLFailed
onPressPage
onReleasePage
Properties
Availability
Flash Player 8
Usage
flipNavigation.blur
Description
Property. Specifies the amount of blur to be added.
Example
myFlipNavigation.blur = 1;
Availability
Flash Player 8
Usage
flipNavigation.defaultType
Description
Property. Specifies a default type of flipping.
Example
myFlipNavigation.defaultType = "random";
Availability
Flash Player 8
Usage
flipNavigation.effectStrength
Description
Property. Specifies the strength of the effect.
Example
myFlipNavigation.effectStrength = 1;
Availability
Flash Player 8
Usage
flipNavigation.friction
Description
Property. Specifies the amount of friction to apply if using the bounce effect.
Example
myFlipNavigation.friction = 1;
Availability
Flash Player 8
Usage
flipNavigation.height
Description
Property (read-only). Returns the height of the component.
Example
trace(myFlipNavigation.height);
Availability
Flash Player 8
Usage
flipNavigation.horizontalAlign
Description
Property. Specifies the horizontal alignment of images.
Example
myFlipNavigation.horizontalAlign = "center";
Availability
Flash Player 8
Usage
flipNavigation.mask
Description
Property. Determines whether the component should be masked by its own width and height (true) or not (false).
Example
myFlipNavigation.mask = false;
Availability
Flash Player 8
Usage
flipNavigation.mouseOverAction
Description
Property. The effect applied to pages on mouse over.
Example
myFlipNavigation.mouseOverAction = "none";
Availability
Flash Player 8
Usage
flipNavigation.preloadSet
Description
Property. The number of pages to preload at one time.
Example
myFlipNavigation.preloadSet = 5;
Availability
Flash Player 8
Usage
flipNavigation.showPreloader
Description
Property. Specifies whether to show the preloader (true) or not (false).
Example
myFlipNavigation.showPreloader = false;
Availability
Flash Player 8
Usage
flipNavigation.tweenType
Description
Property. Tween type for the flipping effect.
Example
myFlipNavigation.tweenType = "easing";
Availability
Flash Player 8
Usage
flipNavigation.verticalAlign
Description
Property. The verticalAlignment of the images displayed.
Example
myFlipNavigation.verticalAlign = "top";
Availability
Flash Player 8
Usage
flipNavigation.width
Description
Property (read-only). The width of the component.
Example
trace(myFlipNavigation.width);
Availability
Flash Player 8
Usage
flipNavigation.xmlURL
Description
Property. Path to xml file containing page descriptions
Example
myFlipNavigation.xmlURL = "file.xml";
Methods
Availability
Flash Player 8
Usage
flipNavigation.addItem(item)
Parameters
item: An object to be added to the component.
Description
Method. Adds an item to the component.
Example
myFlipNavigation.addItem({id:"img1", url:"image1.jpg", type:"horizontal"});
Availability
Flash Player 8
Usage
flipNavigation.flipPrev()
Parameters
none
Description
Method. Flips back one image.
Example
myFlipNavigation.flipPrev();
Availability
Flash Player 8
Usage
flipNavigation.flipNext()
Parameters
none
Description
Method. Flips to the next image.
Example
myFlipNavigation.flipNext();
Availability
Flash Player 8
Usage
flipNavigation.flipTo(index)
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 8
Usage
flipNavigation.getItems()
Parameters
none
Description
Method. Returns a list of items in the component.
Example
trace(myFlipNavigation.getItems());
Availability
Flash Player 8
Usage
flipNavigation.getPageData()
Parameters
none
Description
Method.
Example
myFlipNavigation.getPageData();
Availability
Flash Player 8
Usage
flipNavigation.loadXML(file)
Parameters
file: the XML file to load.
Description
Method. Loads the specified XML file.
Example
myFlipNavigation.loadXML("file.xml");
Availability
Flash Player 8
Usage
flipNavigation.removeItem(item)
Parameters
item: The object to be removed.
Description
Method.
Example
myFlipNavigation.removeItem(myPage);
Availability
Flash Player 8
Usage
flipNavigation.removeItemById(id)
Parameters
id: The ID of the item to be removed.
Description
Method.
Example
myFlipNavigation.removeItemById("img1");
Availability
Flash Player 8
Usage
flipNavigation.zoom()
Parameters
none
Description
Method. Zooms in.
Example
myFlipNavigation.zoom();
Availability
Flash Player 8
Usage
flipNavigation.zoomOut()
Parameters
none
Description
Method. Zooms out.
Example
myFlipNavigation.zoomOut();
Events
Availability
Flash Player 8
Usage
onFlip = function()
Description
Event. Triggered when an image is flipped.
Example
var lis = {};
lis.onFlip = function(evt){
trace("onFlip");
}
flipNavigation.addEventListener("onFlip", lis);
Availability
Flash Player 8
Usage
onFlipFinish = function()
Description
Event. Triggered when a flip effect completes.
Example
var lis = {};
lis.onFlipFinish = function(evt){
trace("onFlipFinish");
}
flipNavigation.addEventListener("onFlipFinish", lis);
Availability
Flash Player 8
Usage
onFlipStart = function()
Description
Event. Triggered when a flip event starts.
Example
var lis = {};
lis.onFlipStart = function(evt){
trace("onFlipStart");
}
flipNavigation.addEventListener("onFlipStart", lis);
Availability
Flash Player 8
Usage
onInit = function()
Description
Event. Triggered when the component initializes.
Example
var lis = {};
lis.onInit = function(evt){
trace("onInit");
}
flipNavigation.addEventListener("onInit", lis);
Availability
Flash Player 8
Usage
onLoadPage = function()
Description
Event. Triggered when a page is loaded.
Example
var lis = {};
lis.onLoadPage = function(evt){
trace("onLoadPage");
}
flipNavigation.addEventListener("onLoadPage", lis);
Availability
Flash Player 8
Usage
onLoadProgressPage = function()
Description
Event. Triggered as a portion of a page is loaded.
Example
var lis = {};
lis.onLoadProgressPage = function(evt){
trace("onLoadProgressPage");
}
flipNavigation.addEventListener("onLoadProgressPage", lis);
Availability
Flash Player 8
Usage
onLoadXMLFailed = function()
Description
Event. Triggered when the xml fails to load.
Example
var lis = {};
lis.onLoadXMLFailed = function(evt){
trace("onLoadXMLFailed");
}
flipNavigation.addEventListener("onLoadXMLFailed", lis);
Availability
Flash Player 8
Usage
onPressPage = function()
Description
Event. Triggered when the mouse button is depressed over a page.
Example
var lis = {};
lis.onPressPage = function(evt){
trace("onPressPage");
}
flipNavigation.addEventListener("onPressPage", lis);
Availability
Flash Player 8
Usage
onReleasePage = function()
Description
Event. Triggered when the mouse button is released over a page.
Example
var lis = {};
lis.onReleasePage = function(evt){
trace("onReleasePage");
}
flipNavigation.addEventListener("onReleasePage", lis);