I think the renderer has no background in order to let the selectioncolors show 
through so there's no hittable area there.  I think you should be using the 
dataTip feature instead.

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Fu Di
Sent: Thursday, December 04, 2008 9:18 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] itemrenderer rollover event seems no sensitive

public class CustomerOrderNoRenderer extends DataGridItemRenderer
    {
        private var orderToolTip:OrderToolTip;
        private var parentOrderInfo:ArrayCollection;
        public function CustomerOrderNoRenderer()
        {
            super();
        }
        override public function validateNow():void
        {
            super.validateNow();
            if (listData)
            {

                this.addEventListener(MouseEvent.ROLL_OVER,displayToolTip);

                this.addEventListener(MouseEvent.ROLL_OUT,removeToolTip);

             }
            }
        }
        private function displayToolTip(event:MouseEvent):void
        {
            orderToolTip = 
PopUpManager.createPopUp(this,OrderToolTip,true,PopUpManagerChildList.PARENT) 
as OrderToolTip;
            //orderToolTip.parentOrderInfo = parentOrderInfo;
            PopUpManager.centerPopUp(orderToolTip);


        }
        private function removeToolTip(event:MouseEvent):void
        {
            PopUpManager.removePopUp(orderToolTip);
        }
    }

thanks
foodyi


________________________________
From: Tracy Spratt <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Friday, December 5, 2008 11:05:34 AM
Subject: RE: [flexcoders] itemrenderer rollover event seems no sensitive
Where are you setting the event handlers?

Post your code so we can see what might be wrong.

Tracy

________________________________
From: [EMAIL PROTECTED] ups.com<http://ups.com> [mailto: [EMAIL PROTECTED] 
ups..com ] On Behalf Of Fu Di
Sent: Thursday, December 04, 2008 9:03 PM
To: [EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders] itemrenderer rollover event seems no sensitive

thanks alex,
it is not caused by gap. is there another way to do this job?
i try to listen DataGridColumn, but it is no appropriate events :(
may be i need other control to instead.

foodyi


________________________________
From: Alex Harui <[EMAIL PROTECTED] com>
To: " flexcoders@ yahoogroups. com " < [EMAIL PROTECTED] ups.com >
Sent: Friday, December 5, 2008 3:40:42 AM
Subject: RE: [flexcoders] itemrenderer rollover event seems no sensitive
There is a two pixel gap based on paddingTop and paddingBottom.  Maybe that’s 
what you’re seeing?

From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of Fu Di
Sent: Thursday, December 04, 2008 12:31 AM
To: flex coders
Subject: [flexcoders] itemrenderer rollover event seems no sensitive

hello everyone

i wrote a itemrenderer in datagird  which extends DataGridItemRendere r, and i 
listened MouseEvent.ROLL_ OVER and MouseEvent.ROLL_ OUT events. but when the 
mouse rollover the  itemrenderer it is not sensitive, may be the mouse just 
over the  itemrenderer' s character
it will be triggered.

thanks


foodyi





Reply via email to