#1
0
(由 Microsoft 翻譯) 好吧, 所以我的舞臺上有大廳元件的 Instace, 實例名稱為 "lobby"
具有實例名稱的b_btn。
我的代碼是。
b_btn.addEventListener(滑鼠事件:點擊,顯示聊天);
功能 showChat (e: 滑鼠事件): void。
{
lobby. showchatInput ();
}
當我點擊按鈕時, 我得到聊天輸入在 x 0, y 0, 只能看到聊天輸入的右下角。
聊天輸入上的小箭頭也不斷切換邊。
具有實例名稱的b_btn。
我的代碼是。
b_btn.addEventListener(滑鼠事件:點擊,顯示聊天);
功能 showChat (e: 滑鼠事件): void。
{
lobby. showchatInput ();
}
當我點擊按鈕時, 我得到聊天輸入在 x 0, y 0, 只能看到聊天輸入的右下角。
聊天輸入上的小箭頭也不斷切換邊。
(原文) lobby.showChatInput() problem
Alright, so i have the instace of the lobby component on my stage with instance name of "lobby"
a button with an instance name of b_btn
my code is
b_btn.addEventListener(MouseEvent:Click, showChat);
function showChat(e:MouseEvent):void
{
lobby.showChatInput();
}
when i click the button i get the chat input at x 0, y 0 and can only see the bottom right corner of the chat input.
also the little arrow on chat input keeps switching sides.
Alright, so i have the instace of the lobby component on my stage with instance name of "lobby"
a button with an instance name of b_btn
my code is
b_btn.addEventListener(MouseEvent:Click, showChat);
function showChat(e:MouseEvent):void
{
lobby.showChatInput();
}
when i click the button i get the chat input at x 0, y 0 and can only see the bottom right corner of the chat input.
also the little arrow on chat input keeps switching sides.
作者 alen
2012-04-27 20:19:20
讚好
回覆
#2
(由 Microsoft 翻譯) 大廳將調用 getchatBubblePosition 獲取聊天泡沫的位置。我們剛剛更新了大廳模組,以有一個操作GetChatBubble位置,供您設置這個函數的名稱,我們還在手冊中包含有關此功能的解釋。
(原文) The lobby will call getChatBubblePosition to get the position of the chat bubble. We have just updated the lobby module to have a actionGetChatBubblePosition for you to set the name of this function, we have also included explanation in the manual about this function.
作者 Novel Games
2012-04-30 11:15:11
讚好
回覆