Hi,
I'd like ta make a basic plug-in, just to learn how it's working.
Basically, this is my plug in (as3) :
|
Source code
|
1
2
3
4
5
6
7
8
9
|
function startup_plugin(event:Event):void
{
cible.addEventListener(MouseEvent.CLICK, afficherZoom);
}
function afficherZoom2(event:Event):void
{
krpano.call("loadpano(another-pano.xml,null,KEEPALL,BLEND(2));");
}
|
and my xml :
|
Source code
|
1
2
3
|
<hotspot name="Hotspot2" url="plugIn.swf" visible="true" ath="0"
atv="0" scale="1" zoom="false" onhover="showtext(Clic);"
/>
|
But when I click on my button, flash tracer is crying :
TypeError: Error #1009: Il est impossible d'accéder à la propriété ou à la méthode d'une référence d'objet nul.
at krpano::krpano_plugin/event_click()
In english : It's impossible to access to a property or a method of a reference objet which is null at krpano::krpano_plugin/event_click() (something like this :-) )