ACTIONSCRIPTERS ONLY

Out of context: Reply #18

  • Started 20 years ago
  • Last post 20 years ago
  • 27 Responses
  • AMFA0

    FYI

    you can also use _root["var"+counter]

    this will allow more options...

    eg
    if you need to set a dynamic var:
    eval("var"+i) = "hello"
    will throw and error,
    and
    _root["var"+1] = "hello"
    will not

    both work if you do:
    myVar = eval("test"+i)
    or
    myVar = _root["test"+i]
    but eval wont work the other way....

View thread