Connecting Tech Pros Worldwide Forums | Help | Site Map

External XML into Flash (AS2)

Member
 
Join Date: Mar 2008
Posts: 60
#1: Apr 4 '09
Hey.

New problem. Ugh...

As it turns out Flash will not load an XML file located elsewhere (some other websites, network, etc..). It will only load local XML. This causes a problem for me.

My code requires external XML as it is generated by a weather service.

Is there a way (using AS2) to allow for loading of external XML instead of having it hosted locally?

gopan's Avatar
Member
 
Join Date: Apr 2009
Location: Kochi (COK), India
Posts: 41
#2: Apr 23 '09

re: External XML into Flash (AS2)


I think you havn't enabled that domain where the xml comes from, in the script..

System.security.allowDomain("www.thedomain.com");

for more clarification see Adobe Flash LiveDoc :
http://livedocs.adobe.com/flash/9.0/main/00002104.html
Member
 
Join Date: Aug 2008
Posts: 41
#3: Aug 13 '09

re: External XML into Flash (AS2)


There is another option under File > Publish Settings >Local playback security > and set that to access network files only .

Not sure if is your case , but it might help u.
Reply


Similar Flash / Actionscript bytes