Avatar click event

Post here your questions about the OpenSpace 2.x or notify bugs and suggestions.

Moderators: Lapo, Bax

Post Reply
warhell
Posts: 199
Joined: 18 Aug 2007, 16:49
Location: Silicon Valley, CA
Contact:

Avatar click event

Post by warhell »

From the OpenSpace V2 Docs...
CLICK
public static const CLICK:String = "avClick"
(read)

Dispatched when an avatar (main sprite only) is clicked.
This event is fired if the <EnableAvatarMouseEvents> parameter in the OpenSpace client-side configuration is set to 1 only.
What is considered the main sprite? I have a game were we are dynamically creating the avatar using a 3d rending API. I've tried implementing the avatarclick event, but it doesn't seem to dispatch. Is the "main sprite" referring to a movieclip or graphic that has to be in the avatar initially?
SmartFoxServer and OpenSpace developer
www.edgarmiranda.net
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

"main sprite" refers to the fact that you can have a ghost avatar too. Check the documentation for more informations on this.
Not sure why that doesn't work.. maybe it is related to how the sprite is generated by the 3D framework.
Paolo Bax
The SmartFoxServer Team
Post Reply