Hi
I am starting my discovery to openspace from running example project but stuck with following error when selecting one of room:
[ERROR] Invalid avatar type passed during avatar creation (0500)
AVATAR CREATION ERROR: Missing 'ExampleAvatar' class definition in avatars application domain for 'example' avatar type
I found viewtopic.php?f=17&t=8763&hilit=ExampleAvatar but don't understand how fix this.
I am using:
Flash Builder 4.6
Flex SDK 4.6
SmartFoxServer 2X 2.2.0
OpenSpace v2.0.4
Problem runnig example project
Re: Problem runnig example project
The answer is the same I gave in the post you mentioned:
As the error shows, OpenSpace is not able to create an instance of the class "ExampleAvatar". This class should be contained in a SWF file that must be loaded before any map is rendered. Are you doing this? If yes, are you setting the IOpenSpace.avatarAppDomain property as described in the OpenSpace client API documentation?
If you are using the example as-is, it should work out of the box. Otherwise you are possibly not loading the swf containing the avatar assets.
As the error shows, OpenSpace is not able to create an instance of the class "ExampleAvatar". This class should be contained in a SWF file that must be loaded before any map is rendered. Are you doing this? If yes, are you setting the IOpenSpace.avatarAppDomain property as described in the OpenSpace client API documentation?
If you are using the example as-is, it should work out of the box. Otherwise you are possibly not loading the swf containing the avatar assets.
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
Return to “OpenSpace v2 discussions and help”
Who is online
Users browsing this forum: No registered users and 13 guests