PHP User Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: bbcode_highlight in ..../includes/functions.php on line 4197
button to other layer and .as listener
A Flash Developer Resource Site

Results 1 to 1 of 1

Thread: button to other layer and .as listener

  1. #1
    Junior Member
    Join Date
    Feb 2011
    Posts
    16

    button to other layer and .as listener

    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));
    }
    Attached Images Attached Images

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center