I am at the end of my wisdom and would appreciate a quick help with the createarray() command:
Could not find anything in your forum..
- I successfully created an array and filled it in xml
- can read separate entries directly in as3 - krpano.get("plugin[thumbs:panos].thumb[3].url")
- but can't bring the accessible array into an swf plugin
here are the snippets:
xml:
<action name="load_pano_thumbnails">
set(plugin[thumbs:panos].thumb[2].url,1.jpg);
set(plugin[thumbs:panos].thumb[3].url,2.jpg);
set(plugin[thumbs:panos].thumb[4].url,3.jpg);
set(plugin[thumbs:panos].thumb[testy].url,4.jpg);
set(plugin[thumbs:panos].alpha,0);
trace(has loaded);
</action>
And the as3 part:
//note: array is initialized in as3:
plugin_object.createarray("thumb")
function updateEvent(dataevent:DataEvent):void
{
krpano.trace(0, krpano.get("plugin[thumbs:panos].thumb[3].url") ); //this works like a charm
try{
var temp:* = krpano.get("plugin[thumbs:panos].thumb" ); //this doesn't return the array, but an 'object Kinterface_array' that I cannot access the regular array way
krpano.trace(0, temp[3].url ); //hence, this doesn't run
}catch(e:Error){
krpano.trace(0, e );
}
}
//end
Is there any documentation on how to use the object kinterface_array()? or another way to be able to treat the xml generated array as an array in as3?
Thanks for any response in advance.