linking xml files in Flash
- Started
- Last post
- 11 Responses
- peterorpete
Hi im trying to link a flash file to a xml file but change it so it links from an external link. This example works:
var xmlString:URLRequest = new URLRequest("xml/filename.xml");
- peterorpete0
sorry, my text is missing
Hi im trying to link a flash file to a xml file but change it so it links from an external link. This example works:
var xmlString:URLRequest = new URLRequest("xml/filename.xml");
but i thought if i simple changed it to this it would work but it doesn't
var xmlString:URLRequest = new URLRequest("http://www.website.c...
If any one knows what i'm doing wrong and knows a solution, i would be very grateful for the help as i don't really know what im doing :)
- http://www.website.c…
text keeps going missing :(peterorpete - arghpeterorpete
- http://www.website.c…
- peterorpete0
var xmlString:URLRequest = new URLRequest
("http://www.website.com/xml/fil...
- peterorpete0
hey Jsaul, thanks for replying to my mess of a thread :)
ok from your screen grab could myxml.xml be change to a absolute link like such http://www.website.com/myxml.xml ?I tried to do this but it doesn't work, but i probably going about it all wrong
- flashbender0
you can stick your code in http://www.pastebin.se/ so people can see it w/o anything getting stripped out
- jsaul0
using absolute link should be fine, as long as you have proper access to the xml file cross domain, also if you are running from a server you might want to try setting "access network only" in publish settings..
- tommyo0
Yup a direct url link should work fine, it's probably your security blocking it? Are you running into the same issue when you put the files on a server? Or are you just running this locally?
- peterorpete0
Yeah i found out its something to do with my servers security or something. I keep getting
Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation:
Just trying the various google solutions now. Thanks for the help
- kumori040
mos def cross-domain