In the OpenSpace.initialize() method, do you have to pass a swf file that contains all of the avatar skins? We were thinking of putting each individual skin, (i.e. a shirt) in it's own swf file and pulling in only what we need at runtime when we build the avatar.
If we can do this, how would we handle the OpenSpace.initialze() method when we don't have a single swf file with all the avatar assets in it?
Or, do we have to have all avatar skins (shirts, pants, hair, eyes, etc) in one swf file?
Thanks,
Biff
Question about Avatar Assets
-
- Posts: 29
- Joined: 07 Aug 2009, 17:54
As you can see in the our AvatarMovieClip example, each avatar skin part instance is created like this:
Definitions are retrieved from the application domain of the external file (passed in the initialize method). This is not mandatory. You could instead change your AvatarMovieClip class so that specific swf files are loaded depending on the required skins.
Of course, being the loading an asynchronous process, you will probably see the avatar parts appear on the screen with some lag.
Code: Select all
var avatarPart:Class = getDefinitionByName(avatarClassName) as Class
Definitions are retrieved from the application domain of the external file (passed in the initialize method). This is not mandatory. You could instead change your AvatarMovieClip class so that specific swf files are loaded depending on the required skins.
Of course, being the loading an asynchronous process, you will probably see the avatar parts appear on the screen with some lag.
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
-
- Posts: 29
- Joined: 07 Aug 2009, 17:54
Thanks for the reply Bax.
How you're explaining it is exactly how we plan to do it, however, the initialize() method requires two paramaters: an instance of the SmartFoxServer, and an avatarsLibrary. If we don't have one single library to pass because we've broken everything out, how do we handle the avatarsLibrary parameter of the initialize() method?
Or maybe I'm confused as to what the avatarsLibrary parameter requires?
Thanks,
Biff
How you're explaining it is exactly how we plan to do it, however, the initialize() method requires two paramaters: an instance of the SmartFoxServer, and an avatarsLibrary. If we don't have one single library to pass because we've broken everything out, how do we handle the avatarsLibrary parameter of the initialize() method?
Or maybe I'm confused as to what the avatarsLibrary parameter requires?
Thanks,
Biff
Return to “OpenSpace v1 discussions and help”
Who is online
Users browsing this forum: No registered users and 11 guests