A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: loading xml over the web

  1. #1
    Member
    Join Date
    Dec 2002
    Posts
    97

    loading xml over the web

    I'm loading public XML weather data from noa.gov into an MC for display. Although everything works fine when running locally, the data never loads on a web server. I'm attaching the file if anyone wants to look at it. It's online here:
    http://www31.brinkster.com/zjonbz/wther.html

    Is something in Flash preventing loading? How do I get around this problem?

  2. #2
    Member
    Join Date
    Dec 2002
    Posts
    97
    sorry -- here is the fla
    Attached Files Attached Files

  3. #3
    Senior Member tupps's Avatar
    Join Date
    Jan 2001
    Location
    Melbourne
    Posts
    2,035
    Welcome to flash security, see the flash-xml faq for details and work arounds.

    Thanks

    Luke
    Flash-XML FAQ
    http://www.tupps.com/flash/faq/

  4. #4
    Perverse Futurist villain2's Avatar
    Join Date
    Sep 2002
    Location
    Baltimore, MD
    Posts
    891
    Again, like I said to someone earlier in another forum, this seems to be an ongoing problem. I'm surprised more people aren't talking about this stuff because XML integration with Flash is so darn useful, but there are certain rules to follow.

    In this case, I wrote a proxy php file that calls the actual XML source file from another server. That way, your php proxy file now IS the same as the external xml file (and it consistent, so you never have to adjust the proxy, everytime that php file is called, it'll download the external xml data). All you do then is point your flash player to the proxy php file instead of the external xml file.

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