A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: Non-local XML feed

  1. #1
    Member
    Join Date
    Jun 2003
    Location
    Minot ND
    Posts
    49

    Non-local XML feed

    Okay I have a file in which some vars are loaded from and external xml feed. It works perfectly on my local machine, but when I upload it to a webserver(not the same server the feed is on) it no longer loads those vars. I've heard before that this problem exists but I do not know how to correct it. Do I have to draw those vars in PhP then put them back into an xml file on the same server as the swf file?

    Please help.

    Herk
    - Blind Faith runs into things! -

  2. #2
    Senior Member tupps's Avatar
    Join Date
    Jan 2001
    Location
    Melbourne
    Posts
    2,035
    Make sure that the URL's you access the swf page and the url the swf uses to access the feed is the same. If your swf is referencing http://192.168.0.2 and you are accessing your server via http://www.myserver.com the flash security system will kick and stop you from using it.

    Thanks

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

  3. #3
    Member
    Join Date
    Jun 2003
    Location
    Minot ND
    Posts
    49
    Well, the swf was looking for www.x.com and that was were the xml was. The only way I finally got it to work was by writing a php script that echoed the xml feed onto my local server.

    Herk
    - Blind Faith runs into things! -

  4. #4
    Registered User
    Join Date
    Sep 2004
    Location
    Los Angeles
    Posts
    86
    I had the same problem only in an asp environment. I echoed the xml feed on the server and it worked for my work machine, but I cannot get it to work on my personal laptop, but if I download the swf and run it locally, it works.

    I thought it might be a firewall issue, but there are others outside of the firewall who can access the newsfeed without any problems.

    Is there some sort of security setting on my browser that might be screwing up the feed?

    http://www.seic.com/Ancillary_Press_releases.asp

  5. #5

  6. #6
    Registered User
    Join Date
    Sep 2004
    Location
    Los Angeles
    Posts
    86

    proxy

    I'm not sure what you mean by that.

    the newsfeed flash piece needs to work for anyone who tries to access it from the internet.

    Is there something I can do at the actionscript level to fix this or do I need to bring the network admins in on the project to configure the server somehow?

    I have verified that the page works for some people but not for others. I'm not sure how many people outside the company can or cannot see the news articles:

    http://www.seic.com/Ancillary_Press_releases.asp

  7. #7
    up to my .as in code Chris_Seahorn's Avatar
    Join Date
    Dec 2004
    Posts
    4,389
    The new Security Sandbox rules pretty much changed the way a lot of us code RSS readers and such for the web. One of the better articles I've read concerning this may be of interest to you:

    http://www.adobe.com/devnet/flash/ar..._security.html

  8. #8
    Registered User
    Join Date
    Sep 2004
    Location
    Los Angeles
    Posts
    86
    wierdest thng ever! - after racking my brain all day yesterday and testing till i was blue in the face with no success...

    I tried the flash page today and it works!!!

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