A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [AnyVersion] setting var in Mc from .root

  1. #1
    XRave tongxn's Avatar
    Join Date
    Apr 2005
    Location
    Somewhere near Here
    Posts
    870

    [AnyVersion] setting var in Mc from .root

    I'm sorry if this sound a little childish, but I can't find my way around it

    I'm tryin to load a LOT of variables stored in .txt files, and I need to use a BUTTOn, to load a contact card of that information.
    say this:

    on(release){
    [I'm going to drag the MC from the library]
    var naMe = name1;
    var tzone = timezone1; [ and set the dynamic textboxes ]
    }

    But that only happens when the textbox is in .root

    I don't know how to load the var into textboxes inside an AS generated MC. Can anyone help me?

    p.s. This IS really beginner isnt it...
    p.s. can we please please please keep it to AS 2.0

    Tongxn
    Long time no see
    When you actually know what "OMG I have so much homework!" means, you won't want to be me.
    Xrave

  2. #2
    Ryan Thomson EvolveDesigns's Avatar
    Join Date
    Oct 2001
    Location
    British Columbia
    Posts
    3,338
    PHP Code:
    mcInstanceName.tzone timezone1
    where mcInstanceName is the instance name of the mc you want to pass the variable to
    Evolve Designs Interactive Media
    the natural selection

  3. #3
    XRave tongxn's Avatar
    Join Date
    Apr 2005
    Location
    Somewhere near Here
    Posts
    870


    Is it THAT easy!?
    Thanks!
    When you actually know what "OMG I have so much homework!" means, you won't want to be me.
    Xrave

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