Problem runnig example project

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

Moderators: Lapo, Bax

max333
Posts: 1
Joined: 09 Aug 2012, 08:12

Problem runnig example project

Postby max333 » 09 Aug 2012, 08:37

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
User avatar
Bax
Site Admin
Posts: 4609
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Re: Problem runnig example project

Postby Bax » 11 Aug 2012, 10:23

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.
Paolo Bax
The SmartFoxServer Team

Return to “OpenSpace v2 discussions and help”

Who is online

Users browsing this forum: No registered users and 13 guests