看板 Flash 關於我們 聯絡資訊
首先 我利用a .swf裡面的按鈕 import flash.events.EventDispatcher; btn.addEventListener(MouseEvent.CLICK,m05); function m05(event:MouseEvent):void{ var i05:Loader = new Loader() this.addChild (i05); i05.load(new URLRequest("v05.swf")); } 開啟一個b.swf檔 它是一個FLVplayback 我在b.swf上想做一個按鈕 btn 能讓他把b.swf關掉 那我有關按鈕的程式碼應該要怎麼打才對呢?? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 118.170.38.175
dreamboxer:1. 你在b.swf中的btn要給他一個ID,假設叫MY_BTN 08/12 09:44
dreamboxer:2.寫一個Event.COMPLETE事件等b.swf 載入進來,這樣才抓 08/12 09:45
dreamboxer:的到 MY_BTN 08/12 09:45
dreamboxer:3.MovieClip(event.target.content).MY_BTN.addEvent.. 08/12 09:48