Hi,

You could use this custom class:

package
{
    import flash.events.MouseEvent;
    import mx.containers.Panel;
    import mx.events.FlexEvent;

    [Event(name="headerClick", type="flash.events.MouseEvent")]
    public class MyPanel extends Panel
    {
        public function MyPanel()
        {
            super();
            this.addEventListener(FlexEvent.CREATION_COMPLETE, addNewEvent);
        }

        private function addNewEvent(event:FlexEvent):void{

this.titleBar.addEventListener(MouseEvent.CLICK,handleTitleBarClick);
        }

        private function handleTitleBarClick(event:MouseEvent):void{
            dispatchEvent(new MouseEvent("headerClick"));
        }

    }
}

It will dispatch an event called "headerClick". You can listen to that.

Regards,
Venkat
www.venkatv.com

On Fri, Oct 31, 2008 at 12:17 PM, subeesh a <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> You can extend the Panel control and listen for the mouse over on the
> panel header and dispatch your custom event.
>
> If you find a better way of doing it. Please post it here .
>
> Subeesh
> http://subeesh.wordpress.com/
>
> On Fri, Oct 31, 2008 at 11:56 AM, Prasanth <[EMAIL PROTECTED]>
> wrote:
> >
> > Hi All,
> > Is it possible to listen to a mouse rollover event on a panel title.
> > When the user points the mouse on the panel title i need to  show a
> > message to the user. But this message should not come when the user is
> > anywhere in the panel other than the titel. Is this possible in  flex.
> > Any pointers to this would be helpfull.
> >
> > Thanks
> > Prasanth
> > >
> >
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to