A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Giving loaded mc a instance name

  1. #1
    Junior Member
    Join Date
    Feb 2006
    Posts
    16

    Giving loaded mc a instance name

    hi there..

    Call me stupid...but how can I give a loaded MC a instance name???

    So for example:
    _root.holder.loadMovie("externalMC"); >>>how can I give "externalMC" a instance name???

    Cheers,



    Marvin

  2. #2
    Senior Member
    Join Date
    Jun 2006
    Posts
    186
    var instanceName:MovieClip = _root.holder;

  3. #3
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    var instanceName:String = "externalMC";
    - The right of the People to create Flash movies shall not be infringed. -

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