Flash AS ?

Out of context: Reply #6

  • Started
  • Last post
  • 16 Responses
  • joyride0

    on the main timeline you set a var mySize = "100";

    then from withing the movieClip you, which is on the main timeline, you can call it like:

    textBox = _parent.mySize

    results will be textBox = "100"

    Think of the movieClip as an object and the var is not in that object, but above it, so _parent. if you have a movieclip within that movieclip it would be _parent._parent and so on. Make sense? are you trying to get a string (some text)? or set a number (maybe to set the size of something)?

View thread