Minimap current location after "openNext" in as3?
Posted: Wed Jul 06, 2011 2:07 pm
hi,
Just 1 more.. : )
In flash as3, if you load next panorama with:
<panoclip>.pano.openNext(<url:String>,<target:String>); // open a new panorama.swf within the current player, target can be "pan/tilt/fov"
How to set current spot location in minimap? (with as3 or using skin actions)
(since minimap skin is embedded in the first .swf..)
I tried adding action to the selected location marker:
loaded : set element location | offset: $ut target: $self
$ut = user data: title, where i wrote the offset target name in each ..swf.. but it didnt work,
Eventhough it display "$ut" correctly in textbox..
This works if I manually type the offset target, but then I'd have to embed the skin to each swf..
loaded : set element location | offset: spot1 target: $self
*edit:
Basically the problem is, "$ut" doesnt work with actions?
make button, add action:
Source= Mouse click
Action = Hide element
Target = $ut
(you have set $ut in userdata: title)
Just 1 more.. : )
In flash as3, if you load next panorama with:
<panoclip>.pano.openNext(<url:String>,<target:String>); // open a new panorama.swf within the current player, target can be "pan/tilt/fov"
How to set current spot location in minimap? (with as3 or using skin actions)
(since minimap skin is embedded in the first .swf..)
I tried adding action to the selected location marker:
loaded : set element location | offset: $ut target: $self
$ut = user data: title, where i wrote the offset target name in each ..swf.. but it didnt work,
Eventhough it display "$ut" correctly in textbox..
This works if I manually type the offset target, but then I'd have to embed the skin to each swf..
loaded : set element location | offset: spot1 target: $self
*edit:
Basically the problem is, "$ut" doesnt work with actions?
make button, add action:
Source= Mouse click
Action = Hide element
Target = $ut
(you have set $ut in userdata: title)