Intermediate Flash Help

Out of context: Reply #1

  • Started
  • Last post
  • 3 Responses
  • E0

    probably you want to get the name of the movieclip or something, by calling the MC or Object itself you will get a reference to that object and not a value within that object - you need to specify the value you want to grab from that object.

    var str = _root[obj]._name

    this will give you the name of the object.

    random(5) is ok, you don't have to make it a number object first

    ("level0.clip"+n) won't give you an object, but a string -
    level0 or _root["clip"+n] will give you an object

    I hope this will help you a bit

    Good luck

View thread