I want to write a plugin toolbar in Flex but I have two problems: 1st I can't get events from krpano. This is the event in my source code, but it never get's called:
Code
krpano.addPluginEventListener(this, krpano_as3_interface.PLUGINEVENT_UPDATE, updateEvent);
...
public function updateEvent(dataevent:DataEvent):void
{
var krpano:krpano_as3_interface = null;
krpano = krpano_as3_interface.getInstance();
var plugin_path : String = dataevent.data;
var plugin_object : Object = krpano.get(plugin_path);
var updatedattriubte:String = dataevent.data;
if ( updatedattriubte == "desc" )
{
desc = plugin_object.desc;
}
}
Display More
2nd I want a button that takes a screenshot of the panorama for saving as JPG, I trying to use
ImageSnapshot.captureImage( WhatToCapture ); but what is the object I should capture?