#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
赞
回复