[Should be simple] shortcut / pointer
Hi guys,
I guess that this one will be resolved in no time, but for some reason i cannot make it work, what a shame :)
Basically I'm trying to write a pointer:
example of a pointer to a Movie Clip
code:
Pointer = _root.xxxMC.yyyMC.zzzMC
// Now this will trace the _x pos of the MC
trace(Pointer._x)
Short and easy...
example of a pointer to an Object
code:
_root.xxx.yyy = {value1:"Flash", value2:"Kit"}
Pointer = _root.xxx.yyy
// Now this will trace "Flash"
trace(Pointer.value1)
Now... I'm looking for a way to have a pointer for something like this; my "real" code looks similar to:
code:
ArrayName["String"][Number][Number] = {value1:"Flash", value2:"Kit"}
Pointer = ??????????
// Now this will trace "Flash"
trace(Pointer.value1)
Is there a short way to write a pointer for something like that? Of course I know I would be able to write a custom function with if's and such, but I was just wondering if there's a short way, maybe a simple code I forgot (I tried using things like eval() with no luck) :)
Thanks!