开发者

how to detect when animation is completed

开发者 https://www.devze.com 2023-01-14 07:56 出处:网络
i have a mx:AdvancedDataGrid control with animation on resize. And i need to resize another contol A accordingly with mx:AdvancedDataGrid size. But resizing of contol A is too slow.

i have a mx:AdvancedDataGrid control with animation on resize. And i need to resize another contol A accordingly with mx:AdvancedDataGrid size. But resizing of contol A is too slow.

Threrefore, the addition of resize handler is bad solution. I want to get the time when the animation is completely stopped either the new size of mx:AdvancedDataGrid control. Please开发者_JAVA技巧 advise me a solution


You can attach an eventListener to the effectEnd event of the Resize effect:

<mx:Resize effectEnd='myEventHandler()' id="resizeEffect" />
<mx:AdvancedDataGrid resize="{resizeEffect}" />
0

精彩评论

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