Hi,
Should this snippet have worked as is placed into a scene?
It did not work for me. Verified using the latest swf.
e.g.
|
Quellcode
|
1
2
3
|
<events onxmlcomplete="trace(global onxmlcomplete event);" />
<events name="test1" onxmlcomplete="trace(test1 onxmlcomplete event);" />
<events name="test2" onxmlcomplete="trace(test2 onxmlcomplete event);" />
|
and note - the 'named' events - that means <event> tags with a name, have also a "keep" flag,
and they will be removed when loading the next pano when keep was not set to true,
It didn't work for me either. I figured I had done something wrong but I know I am using the latest swf and js from 5-20-11. I was hoping an example would set me straight.
I have checked my code again and found a small bug in the Flash version regarding the "onviewchange" event,
I'm still checking if the global "event.onviewchange" was set before dispatching the "onviewchange" event to all other events tags...
this bug will be fixed in the next release,
in meantime it would be nesecery to write the code like this (just set the global onviewchange to anything, e.g. a empty string) to get the onviewchange event working also the 'named' event tags:
|
Quellcode
|
1
2
|
<events onviewchange="" />
<events name="hlookatlimits" onviewchange="math.max(view.hlookat,view.hlookat,0); math.min(view.hlookat,view.hlookat,90);" />
|
best regards,
Klaus