Home

Downloads

FAQs

Sample Book

Features

Forum

 

Control Buttons

From V1.41 onwards.

Control buttons are buttons which appear on the screen and are not related to pages in any way. They are just SWFs.

Control buttons are specified using a control file:-

xml/Buttons.xml

which has this format:-

<buttons>

<button id="PDF" X="50" Y="500" initState="Disabled" src="path to button swf" initAlpha="50" />

<button id="contentsPrint" X="100" Y="500" initState="Invisible" src="path to button swf" initAlpha="50" />

</buttons>

On frame 1 of the button swf you can define some methods as shown in this example from the Printer button for printing contents thumbnails:-

onPress=function()
{
_root.Contents.PrintContents(); // invoke the printer
}

onRollOver=function()
{
this._alpha=100; // only if the initAlpha < 100
_root.ApplyFilter(this,"BlueGlow"); // put a blue glow around the button
}

onRollOut=function()
{
this._alpha=50;
_root.RemoveFilter(this);
}