i am just on to replace the example skins with my own skins.
For this i created an AvatarSkin class containing a path(as string) to the skin image. This Object of AvatarSkin is tranfered by the method openSpaceEngine.
Code: Select all
openSpaceEngine.createMyAvatar("avatar", null, avatarModel.skin, ...
The event dispatched by openSpace is caught in my avatar class:
Code: Select all
public function onSkinChange(event : AvatarEvent) : void
{
var skin : AvatarSkin = event["params"].skin;
}
So far so good
Now if i log in and noone else is in the room joined by me, the object in my event.params.skin is type of AvatarSkin. If i log in and another user joined the room before, my event.params.skin is type of Object.
The other user has the same sources like me.
Does openSpace do anything else with the transfered object but passing it through or does anybody have an idea how this could be?
Thanks in advance.