2012年10月26日

组件的综合应用

摘要: tj_btn.addEventListener(MouseEvent.CLICK,tj);reset_btn.addEventListener(MouseEvent.CLICK,reset);function tj(e:MouseEvent){ //appendText方法用于实现在多行文本中追加内容 output_txt.appendText("姓名:"+username.text+"\n"); if(male.selected==true) output_txt.appendText("性别:"+male.label+" 阅读全文

posted @ 2012-10-26 22:14 笔墨丹青 阅读(195) 评论(0) 推荐(0)

华夏古月堂

摘要: stop();var loader:Loader=new Loader(); //建立一个Loader对象guzheng_btn.addEventListener(MouseEvent.CLICK,playguzheng); //对古筝按钮添加鼠标单击事件的侦听function playguzheng(e:MouseEvent){ SoundMixer.stopAll(); //停止主swf文件中的背景音乐; //loader.unloadAndStop(true); loader.load(new URLRequest("古筝.swf")); //载入外部的“古筝.swf 阅读全文

posted @ 2012-10-26 21:44 笔墨丹青 阅读(147) 评论(0) 推荐(0)

导航