fusionplayer controller types

The controller types listed below describe three different types that can be accessed or defined when creating plugins.

 

 

 

Function
The Function control object type describe public functions inside fusionplayer that can be accessed directly via Actionscript 3 plugin SWF's.

Filter 'Function' to display the full list available in the API documention.

Example:

// target fusionplayer
fusionplayer = MovieClip(stage.getChildAt(0));
// call to buttonTooltipOver
fusionplayer.buttonTooltipOver(null, caption);

 

Controller event function
Controller event functions are called internally by fusionplayer on particular event triggers but must be defined within a plugin.  The function names and event triggers are defined by fusionplayer and cannot be altered.  Additional function names and event triggers may be added to fusionplayer on future releases.  API users may define their own code within a controller event function.  It is called independently to all plugins loaded into fusionplayer.


Filter 'Controller event function' to display the full list available in the API documention.

Example:

function initialisePlugin():void {
fusionplayer = MovieClip(stage.getChildAt(0));
 // enter custom code here
}

function onChangePano():void {
 // enter custom code here
}

function onFullscreen():void {
 // enter custom code here
}

 

Object
Object control types can be display objects inside fusionplayer such as MovieClips or they can be global variables that can be read and set when creating plugins.

Filter 'Object' to display the full list available in the API documention.

Example:

/* to check if fusionplayer is currently tilting or panning the panorama
use fusionplayer variable: fusionplayer.continuous:Boolean */


// target fusionplayer
fusionplayer = MovieClip(stage.getChildAt(0));
if (fusionplayer.continuous) {
 // enter custom code here
}