Works fine for me. I didn't use Alert as it will cause a rollout.
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Guillermo Villasana
Sent: Monday, September 24, 2007 1:07 PM
To: [email protected]
Subject: Re: [flexcoders] Problem with rollOver and rollOut
Now I have this with the same result, actually the tile list is smaller
and set to bottom left, so the top right of the canvas I am seeing is
white, and even in this area I have the rollOver and rollOut events
beeing triggered.
<!----code -->
<mx:Canvas id="id_cvs" rollOut="Alert.show('Roll out');"
backgroundColor="#ffffff"
rollOver="Alert.show('Roll over');">
<mx:TileList x="0" top="24" id="id_tile_subnav"
direction="vertical"
themeColor="#006633"
backgroundColor="#ffffff"
alpha="0.7" visible="false" minWidth="120"
itemRenderer="componentes.categorias"
width="100%" height="110" textAlign="left"/>
</mx:Canvas>
<!----code -->
Thanks
Alex Harui wrote:
>
> Container's don't have backgrounds so you aren't over the container
> unless you are over its contents. Set a backgroundColor (and
> backgroundAlpha if you want) so the mouse is over something in the
> container.
>
>
------------------------------------------------------------------------
>
> *From:* [email protected] [mailto:[EMAIL PROTECTED]
> *On Behalf Of *Guillermo Villasana
> *Sent:* Monday, September 24, 2007 12:01 PM
> *To:* [email protected]
> *Subject:* [flexcoders] Problem with rollOver and rollOut
>
> Hello everyone, I have the following code:
> <!----code -->
> <mx:Canvas id="id_cvs" rollOut="Alert.show('Roll out');"
> rollOver="Alert.show('Roll over');">
> <mx:TileList x="0" top="24" id="id_tile_subnav"
> direction="vertical"
> themeColor="#006633"
>
> backgroundColor="#ffffff"
> alpha="0.7" visible="false" minWidth="120"
> itemRenderer="componentes.categorias"
> width="100%" height="110" textAlign="left"/>
>
> </mx:Canvas>
> <!----code -->
>
> The problem I have is that the rollOut is triggered even if I am in
the
> area of the canvas and I don't know why. It seems that every item in
the
> tile list generetes the rollOut and roll over, but I only want the
> rollout when I get out of the canvas. I tried using mouseOut and
> mouseOver with the same problem
>
> Thanks
> Terius
>
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links