dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: How do you load XML using a variable?

  1. #1
    Senior Member
    Join Date
    Oct 2000
    Posts
    220

    How do you load XML using a variable?

    For example. Assume all my code is in place and wokring perfectly.

    All I want to do is replace
    PHP Code:
    myNs.load("news.xml"); 
    with
    PHP Code:
    myNs.load(news); 
    Then ad the following line to my html page.
    PHP Code:
    'FlashVars''news=news.xml'
    Which is pretty much the way I do this when loading an flv or a swf, without any problems

    But apparently, there's more to it than that, when trying to load XML, because it doesn't work.

    What am I missing?

  2. #2
    Senior Member
    Join Date
    Oct 2000
    Posts
    220
    I'm an idiot. Figured it out with some help.

    All my code in in a movie clip.

    Changing it to _root.news did it.

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