开发者

Global Coordinate Value on Mouse Click in Flex

开发者 https://www.devze.com 2023-01-08 05:59 出处:网络
In Flex, I am using the following code: I am using event.event.localX to get the x-axis but it is with reference to local coordinates. How can I get or pass the value of the HBox\'s xAxis that is c

In Flex, I am using the following code:

I am using event.event.localX to get the x-axis but it is with reference to local coordinates. How can I get or pass the value of the HBox's xAxis that is clicked by the user so th开发者_如何转开发at I can add it in the xAxis of the local coordinate.

In other words, I need the global coordinate value? (i.e. x-axis & y-axis)


MouseEvent has stageX and stageY properties.

0

精彩评论

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

关注公众号