Many times we use a combination of Grid and Chart to display the same data and we use the
same data provider for both. The problem starts when you want to filter out some data from the
chart (for example) but not filter it out in the grid.
If you use the same data provider and a filter function, the data will be filtered out in both.
A colleague from work offered a solution to use XML filtering for this task.
I've implemented this idea using an XML based data provider and ActionScript XML filtering
to filter out data from the chart only.
Take a look at the example below: you can filter out chart columns using the check boxes in
the grid.
Code can be found here.
Wednesday, January 26, 2011
Sunday, January 9, 2011
Accessing the Timeline of a loaded SWF in AS3
While Flex provides you with a designated component for loading and communicating with external SWF files,
when you work in Flash - you are not that lucky.
In AS2, you could load an external SWF into a MovieClip and then target it using that MovieClip instance.
In AS3 however, things are not that easy: External SWF files are loaded using the Loader Class,
and in order to get access to their timeline - you must get a reference to that loader's contentLoaderInfo property.
Take a look at this example:
You can download the source here.
when you work in Flash - you are not that lucky.
In AS2, you could load an external SWF into a MovieClip and then target it using that MovieClip instance.
In AS3 however, things are not that easy: External SWF files are loaded using the Loader Class,
and in order to get access to their timeline - you must get a reference to that loader's contentLoaderInfo property.
Take a look at this example:
You can download the source here.
Subscribe to:
Posts (Atom)
About Me
![My photo](http://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTZwixnmNJMpzbEC45GkUcVRYdjcepGELMyOv5JNyA-3chzMZq2SqmLo4mHaHKU1x2tGrOl1QSo0iX1R78aMe5iVzEpI_3NeqQz9QCzXcall3CjgX0B1JwKayaXiLqKQ/s220/amir.jpg)
- Amir Chervinsky
- I've been developing Internet and rich-media application for 15 years. In my work I emphasis usability and best user experience as well as sleek design. My main expertise are JavaScript, Flex and Flash.