A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: syntax help

  1. #1
    AFX == P. Forsberg
    Join Date
    Nov 2001
    Posts
    439

    syntax help

    I am attempting to dynamically write this

    _root.myxml.stateItems1[2];

    now this works but is viewed as a string still:
    code:

    eval("_root.myxml.stateItems"+_root.stateNum+"["+(i-2)+"]");



    How shall I go about extracting the value from the array?

    Thanks,
    1M.

  2. #2
    AFX == P. Forsberg
    Join Date
    Nov 2001
    Posts
    439

    got it

    _root.myxml["stateItems"+_root.stateNum][(i-1)]

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