Page 1 of 1

clicking on avatar with transparency

Posted: 15 Apr 2009, 21:20
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

Posted: 16 Apr 2009, 06:15
by Bax
Check this post.
It refers to skins with transparencies, but with avatars it is exactly the same.

change png bounding box at runtime

Posted: 25 Jun 2009, 02:04
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...

Posted: 25 Jun 2009, 06:33
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.