fusionplayer controllers
The controllers listed below can used to access fusionplayers internal functionality.
thisPluginButton.addEventListener(MouseEvent.ROLL_OVER, addArguments(tooltipOver, ["Switch to fullscreen mode"] ));
function tooltipOver(event:Event, caption:String):void {
// target fusionplayer
fusionplayer = MovieClip(stage.getChildAt(0));
// call to buttonTooltipOver
fusionplayer.buttonTooltipOver(null, caption);
}
function addArguments(method:Function, additionalArguments:Array):Function {
return function(event:Event):void {
method.apply(null, [event].concat(additionalArguments));
}
}
function initialisePlugin():void {
// enter custom code here
fusionplayer = MovieClip(stage.getChildAt(0));
}
fusionplayer = MovieClip(stage.getChildAt(0));
// Is the loader currently visible?
if (fusionplayer.loadingClip.visible == true) {
// enter custom code here
}
function onFullscreen():void {
// enter custom code here
}
function onChangePano():void {
// enter custom code here
}
function onResetFullscreen():void {
// enter custom code here
}
function onClickHotspot():void {
fusionplayer = MovieClip(stage.getChildAt(0));
// if hotspot action is api and the hotspot id clicked is hs_3
if (fusionplayer.thisHotspotAction == "api" && fusionplayer.hsClicked == "hs_3") {
// enter custom code here
}
}
// target fusionplayer
fusionplayer = MovieClip(stage.getChildAt(0));
// call to getTotalRooms
var totalPanoramas:int = fusionplayer.getTotalRooms();
// target fusionplayer
fusionplayer = MovieClip(stage.getChildAt(0));
// call to getCurrentVR
var currentVR:int = fusionplayer.getCurrentVR();
// target fusionplayer
fusionplayer = MovieClip(stage.getChildAt(0));
// call to getTitles
var panoTitles:Array = fusionplayer.getTitles();