Hi there,
I cannot seem to access a hotspot's url, in an action with the following setup. I hope someone can get me back on track!
I have a style definition:
And a a hotspot in a scene:
Code
<scene name="scene_1" onstart="setHotspotStyles();" >
//...
<hotspot name="spot1" ath="90" />
//...
</scene>
Display More
And the following action, called onstart for the above scene:
Code
<action name="setHotspotStyles">
for(set(i,0), i LT hotspot.count, inc(i),
trace(style[style1].url);
trace(hotspot[get(i)].url);
);
</action>
Display More
The first trace logs "%SWFPATH%/skin/hotspot.png", as expected.
The second trace logs null, which has thrown me.
It was my understanding that style definitions are copied to the destination xmlelement.
Can someone help me understand where I am going wrong here?
Cheers,
Olly