[haXe] walk trought all objects of a movie clip

Nicolas Cannasse ncannasse at motion-twin.com
Sat Jan 6 00:19:57 CET 2007


> Hi, my flash app, must receive values that are assigned using this way.
> example.swf?var1=foo&var2=fooo...
> there's a way in which I can recover the _root element to get all the
> values that are within it without know their names?
> 
> something like
> 
> foreach (flash.lib._root as tmp) {
>    var X:Dynamic = tmp;
> }

for( f in flash.Lib.keys(flash.Lib._root) ) {
    var x : Dynamic = Reflect.field(flash.Lib._root,f);
    ...
}

Nicolas



More information about the Haxe mailing list