A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: [MX04]How come sometimes you don't have to use a dynamic reference to a clip?

Threaded View

  1. #1
    Senior Member pup100's Avatar
    Join Date
    Oct 2004
    Location
    Close
    Posts
    575

    [MX04]How come sometimes you don't have to use a dynamic reference to a clip?

    I’ve never quite understood this.

    I’am dynamically loading 3 clips using an array to reference them:

    code:
    _root.holdingClips_array[g].loadMovie("MAIN/players/CARD/ten.swf", get);




    Now, all this works fine & dandy, however if I want to use “getBytesLoaded” in an “onEnterFrame” like this:

    code:
    _root[holdingClips_array[g]].onEnterFrame=function(){
    Time+=_root[holdingClips_array[g]].getBytesLoaded
    }



    Then I have to enclose the reference in brackets [ ], like:

    _root[holdingClips_array[g]]

    I know using this technique creates a dynamic reference to the clip, but how come it works in the first example given above without the brackets?
    Last edited by pup100; 02-16-2009 at 12:40 PM.
    You will know everything when you know you never will.

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