开发者

Does Flex fire an event after a chart is rendered in UI?

开发者 https://www.devze.com 2023-04-02 18:41 出处:网络
I am looking for an event which is fired (if any) after a chart is rendered 开发者_如何转开发(visible in UI) in Flash, we are using Flex SDK 3.0. We have to capture the screenshot after the chart is r

I am looking for an event which is fired (if any) after a chart is rendered 开发者_如何转开发(visible in UI) in Flash, we are using Flex SDK 3.0. We have to capture the screenshot after the chart is rendered, current implementation adds a huge delay in update_complete event callback, this is slowing down the whole job of generating images.

I tried to use EXIT_FRAME event, but this doesn't seem to serve the purpose. Any help to resolve this issue is highly appreciated.

Regards, Dan


Adobe use this event : mx.events.FlexEvent.TRANSFORM_CHANGE

But if you want to use it, you are obligate to inherit from Chart Component classes. Take a look at DataTransform Class.

http://help.adobe.com/es_ES/FlashPlatform/reference/actionscript/3/mx/charts/chartClasses/DataTransform.html


I suggest you to look at the DisplayObject liveDoc, where there are several types of events. Some are fired before the rendering (Event.RENDER), some are fired after specific operation (ResizeEvent, for instance). But if you really want to know when you chart has been rendered, why don't you watch for the validation methods (updateDisplayList(), commitProperties()) by overriding them in a child class and fire a custom event in there ?

0

精彩评论

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