A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [RESOLVED] XML loading variable location

  1. #1
    Junior Member
    Join Date
    Jun 2010
    Posts
    6

    resolved [RESOLVED] XML loading variable location

    Hello

    I have been working with xml sheets to load a menu and in order to load a submenu or to go to a submenu of a submenu, I was wondering if it is possible to load a variable location for an xml.

    For example, if I had the variable xmllocation which was a string that said where in an xml a certain menu was, is it possible to use the xmllocation variable for something like this:
    ( if xml.xmllocation.length() > 0 ) do something;

    whenever I tried messing around with it, it would actually go to look for "xmllocation" in the xml instead of check what the string is. So what I guess I am really asking is, is there a way to tell it not to be so literal?

    Thanks

  2. #2
    :
    Join Date
    Dec 2002
    Posts
    3,518
    Code:
    if (xml[xmllocation].length()>0) {
    	trace("this works");
    }

  3. #3
    Junior Member
    Join Date
    Jun 2010
    Posts
    6

    Thank you

    Yes! Just what I was looking for! Much Thanks

Tags for this Thread

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