Groups
Groups
Sign in
Groups
Groups
台灣 Adobe 使用者俱樂部
Conversations
About
Send feedback
Help
主場景載入外部swf
4 views
Skip to first unread message
miyakijun
unread,
Oct 6, 2008, 12:14:41 PM
10/6/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 台灣 Adobe 使用者俱樂部
首先我有一個主場景,很多遊戲,遊戲由外部載入到主場景內玩,
遊戲結束後會出現一個表示已經玩過的按鈕,按下後可以unload swf
,並且主場景上的大地圖會有所變化。
我試了兩種方法:
方法一:
將over1_btn放在外部swf的最後一個影格,可是這麼做的話只能unload swf,並不能讓
主場景有動作。
方法二:
將over1_btn放在主場景上,但是當我載入swf的時候,就會連over1_btn也一起出現了。
沒辦法等撥放完swf檔撥放完畢才出現。
請問我over1_btn到底要放在哪裡阿?
怎麼做才可以成功呢?!
我的檔案
http://www.sharebig.com/share.php?id=s11bhifeooiN1ZOuf
Ben Chang
unread,
Oct 6, 2008, 12:59:32 PM
10/6/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to au...@googlegroups.com
遊戲 swf 送出自訂事件
dispatchEvent(new Event("GameOverEvent"));
主程式,監聽這個事件來做反映
game_mc.addEventListener("GameOverEvent"
, function(evt:Event):void{
evt.currentTarget.parent.removeChild(evt.currentTarget);
})
2008/10/7 miyakijun
<
miya...@gmail.com
>
Reply all
Reply to author
Forward
0 new messages