A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: targeting variables

  1. #1
    Senior Member p80's Avatar
    Join Date
    Aug 2004
    Location
    MIA
    Posts
    164

    targeting variables

    how can I target a variable from a timeline other than the one it was initilised in. for example, if I have a variable on my main timeline, and I want that variable to change when a mc timeline reaches a certian frame, can I put something like
    code:
    _root.variableName = value;

    on the mc timeline?

    thanks

  2. #2
    you canonly do that if you want to change the variable.

    lets say you have a text area in a seperate MC and every 10 frames you want it to change.

    you have the text area set to _root.variablename as it's variable.

    now on every 10 frame of your other time line or mc you can say
    _root.variablename = "blah...";

    then again you can do alot of these things using set variable.

    I hope this helps, I'm not sure exactly what you were wanting to know.

  3. #3
    Senior Member jbum's Avatar
    Join Date
    Feb 2004
    Location
    Los Angeles
    Posts
    2,920
    Yes, exactly.

  4. #4
    Senior Member p80's Avatar
    Join Date
    Aug 2004
    Location
    MIA
    Posts
    164
    that's just what I wanted to know, thanks

  5. #5
    no problem happy to help.

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