A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: targetpath ... easy one?

  1. #1
    Bob (the singing sock)
    Join Date
    Aug 2000
    Location
    Århus, Denmark
    Posts
    472

    targetpath ... easy one?

    Hi all,

    I am trying to concatenate a variable targetpath and access a variable array.

    the array in an aboslute path can be traced allrigt!
    _level0.submit.countrydrop.drop.myList()

    but I am missing something here?
    _root.activeDrop = "_level0.submit.countrydrop"
    trace(_root[_root.activeDrop].drop.myList);

    HELP ME ...
    pod

  2. #2
    Bob (the singing sock)
    Join Date
    Aug 2000
    Location
    Århus, Denmark
    Posts
    472
    got it!

    trace(eval(_root.activeDrop + ".drop.myList"));

    I would like to know how to do it without 'eval' ... clues?
    //pod

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