Hello,
I need to but one button into another layer (allContent). And if i click button then it loads from start. I tried to but button simply but .as cant listener this button. nothing happends.
Actionscript Code:eng_btn.addEventListener(MouseEvent.CLICK, EngbtnPressed);
function EngbtnPressed(evt:MouseEvent):void{
xmlURL = "xml/mains.xml";
loadXml(xmlURL);
}
function loadXml(someURL:String):void{
xmlLoader.load(new URLRequest(xmlURL));
}