AS3 help!

Out of context: Reply #5

  • Started
  • Last post
  • 12 Responses
  • jpea0

    first, is movie5 your variable reference to that clip or is it the instance name? (or both?)

    if you defined it by something like:
    var movie5:MovieClip = new MovieClip()
    then you can reference it without quotes. If you defined it as an instance name, you can reference it like this:
    this['movie'+movieNumber]
    or maybe use:
    var mc = this.getDefinitionByName('movie...
    mc.x = 100

View thread