SvenA
11-13-2008, 07:28 PM
I working on a project build in flash with a lot of enbedded flashpanoramas. I is a touchscreen system and the user i switch pano from buttons in the mother flash file. It is working fine. The transition plugin works nicely too.
However, I have some reasons to fire a function in my mother flashfile when the transition between two panoramas are finished..
But I cant figure out how to detect when ”onTransitionEnd” fires in my XML file.
I have have set up a function in my xml file like this
<?xml version = '1.0'?>
<panorama>
<parameters>
layer_5 = files/hotspots.swf
</parameters>
<hotspots>
<global onTransitionEnd="finishedForReal =true">
</global>
</hotspots>
</panorama>
In the trace window it is possible to see this:
Execute global: finishedForReal =true
Custom field: finishedforreal
This seems to fire after the transition have finished.
But how do I read in this in my code?
Do anybody have a hint?
//SvenA
However, I have some reasons to fire a function in my mother flashfile when the transition between two panoramas are finished..
But I cant figure out how to detect when ”onTransitionEnd” fires in my XML file.
I have have set up a function in my xml file like this
<?xml version = '1.0'?>
<panorama>
<parameters>
layer_5 = files/hotspots.swf
</parameters>
<hotspots>
<global onTransitionEnd="finishedForReal =true">
</global>
</hotspots>
</panorama>
In the trace window it is possible to see this:
Execute global: finishedForReal =true
Custom field: finishedforreal
This seems to fire after the transition have finished.
But how do I read in this in my code?
Do anybody have a hint?
//SvenA