A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: [Should be simple] shortcut / pointer

Threaded View

  1. #1
    DOT-INVADER marmotte's Avatar
    Join Date
    May 2002
    Location
    Dot-Switzerland
    Posts
    2,601

    [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!
    Last edited by marmotte; 06-03-2007 at 06:28 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center