Hi...
What happens if I put visual classes like Bitmap or MovieClip into skin object and pass it to createMyAvatar....
In my onSkinChange(), I tried to addChild(image)...But it didn't work and gave me stack overflow...
Basically, what I am trying to do is make up the visual of the avatar outside the IAvatarMovieClip....so pass the visual image/MovieClip to createMyavatar directly.....which is not working^^
Thanks and have a great day^^
Avatar skin question...
The skin object that you pass to the createMyAvatar method is a container for parameters (strings, booleans, numbers, arrays) which describe how to "compose" the actual graphical skin of the avatar. You can't pass visual classes.
The reason is that the same information is sent to the other clients, so that they can display the same skin for your avatar. If you could pass visual classes, there would be no way to send that information to the other clients.
The reason is that the same information is sent to the other clients, so that they can display the same skin for your avatar. If you could pass visual classes, there would be no way to send that information to the other clients.
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
Not sure what you want to do exactly, but if you want to add any other stuff on the avatar, why don't you just extend/modify the class that implements the IAvatar interface..there is the "display" method that puts together the movieclips in the sample, so you can add your stuff there, put the resources like bitmaps you need in the avatars library swf.
Well, what I was trying to do was...making all the image...of the avatar look outside of the avatarLibrary.swf because there are way too many assets for our avatar customization. It is impossible for us to put all the assets for the avatar look into one library swf file...so we were thinking of making the look of the avatar outside the IAvatarMovieClip and just passing the completed image...or movieClip of the avatar to the IAvatarMovieClip so the display() can just addChild(lookMC)....
Does that even make sense?
^^
Does that even make sense?
^^