Friday, 6 September 2013

Flash AS3 Loading XML from server (from Flash Pro AND Flash Builder)

Flash AS3 Loading XML from server (from Flash Pro AND Flash Builder)

I am making a project that uses an external xml file. I am publishing from
Flash Professional and I can just put the xml in the bin folder, and when
saying the path use this:
_xmlPath = "blit_test_4.xml";
_xmlRequest = new URLRequest(_xmlPath);
It works great!
However, I then tried to make an actionscript mobile project in flash
builder and compile from there. No matter where I put the xml file, even
in the bin-debug folder, it doesn't read the file and gives me an error. I
do have an svn repository set up by cloud forge, but for some reason I
cannot connect at all to this. I tried this line in code:
_xmlPath =
"https://goldenliongames.svn.cloudforge.com/rufood/HeadExploder/bin-debug/blit_test_4.xml"
Can someone help me out here? Also, I would like to have a flexible system
so I can use these xml files in a app that is published to the stores.
Thanks!

No comments:

Post a Comment