Home

Downloads

FAQs

Sample Book

Features

Forum

 

Parameters

Any number of parameters can be defined for a page. The parameters and values can then be used by ActionScript on your SWF pages. The following would be placed between the <page>...</page> tags.

<param name="msg" value="left page text message"/>

The parameters are accessible to any ActionScript. The following example shows how to access the parameters for left/right pages for the "msg" parameter. Note that the code is inserted in an onEnterFrame function - this is because there are delays between the page being loaded and instantiated. There may be better ways of doing this but I couldn't get it to work using page signals.

Left Page

onEnterFrame=function()
{
var Value=_root.pageParam[_root.page-1]["msg"];

if (Value) { do something }
}

 

Right page

onEnterFrame=function()
{
var Value=_root.pageParam[_root.page-1]["msg"];

if (Value) { do something }
}