actionscript 3 - file inside a package -
i want use as3 file() method import xml file.
the file inside project in package resources/xml/basexml.xml
now file() method has several properties like:
applicationdirectory, applicationstoragedirectory, desktopdirectory, documentsdirectory but none of them points me in right direction. how should this? xml file inside package?
i have tried embed file have class , not file.
do need use file()? if xml file httpservice?
try:
<s:httpservice url="resources/xml/basexml.xml" result="yourresulthandlertoparsethexml(event)"/> or do:
<fx:xml source="resources/xml/basexml.xml"/> and parse off of that.
(both located inside tags.
unless need actionscript solution in case below should work:
var myxml:xml = new xml(); myxml.ignorewhite = true; myxml.load("resources/xml/basexml.xml");
Comments
Post a Comment