Thats a good idea. I'll give that a shot.
--- In [email protected], Alex Harui <aha...@...> wrote:
>
> One option would be to float an transparent UIComponent over the area in
> question and give it the tooltip.
>
>
> On 4/13/10 11:37 PM, "G" <gmonie...@...> wrote:
>
>
>
>
>
>
> I am trying to cancel a tooltip event (I only want it to display when the
> mouse is hovered over a certain area), and can't seem to figure it out. I
> tried stopPropagation, preventDefault, and stopImmediatePropagation, but none
> of them seem to work.
>
> Here the code I am using:
>
> private function toolTipCreateHandler(event:ToolTipEvent):void {
> if(event.currentTarget.mouseX < 130) {
> var tooltip:PhotoToolTip = new PhotoToolTip();
> tooltip.src = event.currentTarget.toolTip;
> event.toolTip = tooltip;
> }
> else {
> event.stopImmediatePropagation();
> }
> }
>
> Any ideas?
>
> Thanks
>
>
>
>
>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>