Copy link to clipboard
Copied
I am trying to include an xml that will be installed with the android app so that my user can save their username in the xml. is there a way to achieve this. I tried including the xml in the publish settings but android is not reading the xml.
This is my xml load function if needed.
var File1:String = File.applicationDirectory.nativePath;
var xmlLoader = new URLLoader();
xmlLoader.load(new URLRequest(File1.split("/").join("\\") + "\\config.xml"));
xmlLoader.addEventListener(Event.COMPLETE, xmlLoaded);
function xmlLoaded(e:Event):void{
loginPanel.rememberMe.enabled = true;
myXML = new XML(e.target.data);
if(parseInt(StringUtils.between(myXML.toString(),"<Saved>","</Saved>")) == 1)
{
loginPanel.rememberMe.selected = true;
var User:String = StringUtils.between(myXML.toString(),"<User>","</User>");
loginPanel.username.Input.text = User;
}
}
Copy link to clipboard
Copied
Thank you Ill try you're suggestion and post back soon.
Copy link to clipboard
Copied
this ended up working perfect I just got it implemented last night thank you again