FusionWidgets and Flash > Handling Loading/Rendering Events |
When you're loading a FusionWidgets chart inside your Flash movie, you can be notified when the chart has finished rendering. |
Adding event listeners |
All the charts in FusionWidgets suite expose an event rendered once they've finished rendering. You can create your listener objects to listen to this event, using the following code: |
//Create a listener object to listen to the rendered event of the chart //Register the object with the chart |
Here, we've created a listener object and associated it with the chart's instance (myFirstChart) . For the sake of demonstration, we just trace out a message whenever the chart has rendered. |