Groups
Groups
Sign in
Groups
Groups
台灣 Adobe 使用者俱樂部
Conversations
About
Send feedback
Help
感謝大家回覆!
0 views
Skip to first unread message
AStw
unread,
Oct 5, 2008, 11:45:45 PM
10/5/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 使用者俱樂部
感謝大家回覆,
在網路上找了很久,有找到一個解決方式:
var ldr:Loader = new Loader();
this.addChild(ldr);
a_btn.addEventListener(MouseEvent.CLICK,onClick);
b_btn.addEventListener(MouseEvent.CLICK,onClick);
c_btn.addEventListener(MouseEvent.CLICK,onClick);
function onClick(e:MouseEvent):void
{
var _str:String
if(e.currentTarget == a_btn){
_str = "a.swf"
}else if(e.currentTarget == b_btn){
_str = "b.swf"
}else{
_str = "c.swf"
}
ldr.load(new URLRequest(_str));
}
謝謝!
Reply all
Reply to author
Forward
0 new messages