You are not logged in.

nelk

Intermediate

  • "nelk" started this thread

Posts: 358

Location: Paris

  • Send private message

1

Saturday, December 20th 2008, 4:36pm

message of flash tracer ?

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 :-) )
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

nelk

Intermediate

  • "nelk" started this thread

Posts: 358

Location: Paris

  • Send private message

2

Saturday, December 20th 2008, 4:38pm

I forget to say :

- the new xml is loading correctly, but I'd like to know why I have this message in flash tracer

- I have flash debug, v10, last version.
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

nelk

Intermediate

  • "nelk" started this thread

Posts: 358

Location: Paris

  • Send private message

3

Sunday, December 21st 2008, 2:42pm

Ok ... It's working correctly, just a stupid syntax mistakes in my code !
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).

4

Monday, December 22nd 2008, 3:38pm



what was wrong?

nelk

Intermediate

  • "nelk" started this thread

Posts: 358

Location: Paris

  • Send private message

5

Tuesday, December 23rd 2008, 11:27am

hum, I don't really remember ! :huh:
VideoStitch, a video stitching engine / blog sur les visites virtuelles ( french ).