PDA

View Full Version : MouseOver + inside Custom Component


ljonny18
09-24-2007, 01:47 PM
Hi.

I am using Flex 2 and have a custom component. within my custom component I have included an image (bitmap) that I want to add a rollOver effect to onMouseOver - e.g. to change the image within my custom component on mouseover etc...

could someone please tell me how this can be done, as I have spent a while on it now and cant seem to work it out :(

Jon.

drkstr
09-26-2007, 06:31 AM
It sounds like you just need to listen for the mouseOver event. Am I misunderstanding the question? Are you asking how to listen for events? Please clarify the question and I'm sure someone will be able to help you.

Best Regards,
...aaron

ljonny18
09-26-2007, 10:58 AM
hi - sorry for the misunderstanding

I have a custom component(cc) extending the UIComponent... my cc includes many images (bitmaps) within it as childeren.

so e.g.: my cc is a square (200x200px) with an image in the center and another image in the top right corner.

I want to add a link (e.g. "http://www.actionscript.org") to the top right image when the image is clicked by the mouse.

I have treid to create an addEvetntListener - but it seems to have no response... maybe I have doune it incorrectly

is what I want to do possible, and if so... how can I go about doing it.


Thanks,
Jon.