clicking on avatar with transparency

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

Moderators: Lapo, Bax

Post Reply
morgflast
Posts: 9
Joined: 04 Sep 2008, 15:21

clicking on avatar with transparency

Post by morgflast »

We have an avatar movie clip, AvatarMovieClip, which implements the IAvatarMovieClip interface. The avatar is composed of png images, which have transparency.

I would like it so that the clicks on the transparent part did not register with the avatar, but instead got passed through to the openspace background.

I have added bits of debugging code to my AvatarMovieClip class to try to see where the clicks are being caught. It appears that the clicks are not registering anywhere within the class, so I am thinking openspace is taking the clicks and then not passing them through to the movieclip.

I dont really mind that openspace captures the clicks, but it is a problem that it registers the click with the avatar, and not with the background, when I click on the transparent region.

Do you have any suggestions for how to deal with this?

Thanks,
Daniel
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

Check this post.
It refers to skins with transparencies, but with avatars it is exactly the same.
Paolo Bax
The SmartFoxServer Team
josuedavid
Posts: 7
Joined: 24 Sep 2008, 11:58

change png bounding box at runtime

Post by josuedavid »

hello Bax, I need to do the same that morgflast wants to do, but I need to do it at runtime because all the images are loading externally.
I have tried with dynamic masking and others tricks like the famous Moses Gunesch's InteractivePNG but nothing seems to work :cry:.
you have any suggestion to my trouble??, thanks in advance...
User avatar
Bax
Site Admin
Posts: 4626
Joined: 29 Mar 2005, 09:50
Location: Italy
Contact:

Post by Bax »

I asked myself if it would have been possible to achieve this when loading images at runtime, but never experimented. I suspect this is not possible. What about working on the bitmapdata to remove transparent pixels?
Let us know if you find something.
Paolo Bax
The SmartFoxServer Team
Post Reply