How to create a new Avatar in Open Space

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

Moderators: Lapo, Bax

sankarganesh86
Posts: 104
Joined: 06 Jan 2010, 09:50
Location: chennai
Contact:

How to create a new Avatar in Open Space

Postby sankarganesh86 » 02 Mar 2010, 10:34

I copy and paste the Avatar Library & Box Avatar MovieClip from slopes/libraries/AvatarsLibrariesExample to new Fla file and save it as AvatarsLibrariesExample so we dont need to change the OpenSpace.xml file

and i call openSpace.createMyAvatar("box",null,initialSkin); with new AvatarsLibrariesExaple.SWF

i Will get
Error #2007: Parameter child must be non-null. in Flash
Logger Event Message:
Populating pathfinder nodes for user avatar.
Logger stopped in this place
What is the reason
User avatar
Bax
Site Admin
Posts: 4395
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 02 Mar 2010, 17:23

There must be something else going on, as we just did the same test and it works. Maybe you did other changes.
Paolo Bax
The SmartFoxServer Team
sankarganesh86
Posts: 104
Joined: 06 Jan 2010, 09:50
Location: chennai
Contact:

Postby sankarganesh86 » 03 Mar 2010, 06:53

If i run the Open Space Slope Example it is working but
it the out put Panel i will get FarWest_Ranch\libraries\AvatarClassesExamples\BoxAvatarMovieClip

Class File Trace Message why it is so....
and please explain me how to create a new Avatar MoveiClip in Open Space

1) I create a new FLA file and save it as Avatar.fla new MovieClip name it as roundMovieClip and i export the Movie Clip with Same Name and i load the swf to my main game Fla
2)In openSpace.xml i create a new Line in <AvatarType type="round" className=roundMovieClip (it is the name of the MovieClip in the Avatar.swf)and default access time etc....

in the main game.fla i type
openSpace.initialize(smartFox, avatarsLibrary); to load the Avatar
openSpace.createMyAvatar("round",null,initialSkin);

what i want to do next
i need to create any class file for the new Avatar MovieClip if it is so
where i need to put that class file
User avatar
Bax
Site Admin
Posts: 4395
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Postby Bax » 03 Mar 2010, 08:33

If i run the Open Space Slope Example it is working but
it the out put Panel i will get FarWest_Ranch\libraries\AvatarClassesExamples\BoxAvatarMovieClip

Class File Trace Message why it is so....

I'm sorry but I don't understand what is going on. You said you are running the Slopes example, but then the trace reports "FarWest_Ranch...". I suggest you to make a copy of the whole example and restart from scratch modifying it.

and please explain me how to create a new Avatar MoveiClip in Open Space

1) I create a new FLA file and save it as Avatar.fla new MovieClip name it as roundMovieClip and i export the Movie Clip with Same Name and i load the swf to my main game Fla
2)In openSpace.xml i create a new Line in <AvatarType type="round" className=roundMovieClip (it is the name of the MovieClip in the Avatar.swf)and default access time etc....

in the main game.fla i type
openSpace.initialize(smartFox, avatarsLibrary); to load the Avatar
openSpace.createMyAvatar("round",null,initialSkin);

what i want to do next
i need to create any class file for the new Avatar MovieClip if it is so
where i need to put that class file

Check the OpenSpace API documentation: the description of the IAvatarMovieClip describes how to create an avatar class. What you are doing is not enough, as you need an actionscript class "behind" the movieclip.
Paolo Bax
The SmartFoxServer Team
sankarganesh86
Posts: 104
Joined: 06 Jan 2010, 09:50
Location: chennai
Contact:

Postby sankarganesh86 » 03 Mar 2010, 08:52

Finally i found the solution of my problem bax thank you for your replay
we want to place a Avatar Class file near to the Avatar swf file

if i create a new Avatar swf and a class file we want to place both the file in same folder then it is working

thank you for your replay .......

Return to “OpenSpace v1 discussions and help”

Who is online

Users browsing this forum: No registered users and 1 guest