开发者

in flex, onMouseOut is triggered on Child

开发者 https://www.devze.com 2023-01-08 21:35 出处:网络
In flex, I am using the following code: mx:HBox id=\"box1\" mouseOver=\"onBox(\'box1\')\" mouseOut=\"outofBox(\'box1\')\"

In flex, I am using the following code:

mx:HBox id="box1" mouseOver="onBox('box1')" mouseOut="outofBox('box1')" // adding label // closing HBox

onBox adds an image as child of box1:

var crossImage开发者_如何转开发:Image = new Image(); crossImage.source = "cross.png"; crossImage.id = "cross";

box1.addChild(crossImage);

and outofBox removes them.

I believe that image is child of HBox so mouseOut should not be triggered when I hover the mouse over image. But, the moment I hover my mouse pointer over image, mouseOut is triggered. Why is it so?


Set the mouseChildren property of the container to false

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号