Contact me at : hello[at]gauravjassal[dot]com
When you develop a actionsction 3 component its good to compile the component to .swc file and reuse it in different projects. To create a SWC file, use the compc compiler in the flex_install_dir/bin directory. The compc compiler generates a SWC file from MXML component source files and/or ActionScript component source files.
In this example, you create a SWC file for a custom formatter component that you defined by using the following package and class definition:
package com.gauravjassal.controls.TwitterList
{
//Import base Twitter class.
import mx.controls.Label
public class TwitterList extends UIComponent{
...
}
}
You use the following compc command from the flex_install_dir/bin directory or flex_builder_director/sdks/sdkversion/bin to create the SWC file for this component:
.\compc -source-path c:\flex\wamp\www\Twitter\src\ -include-classes com.gauravjassal.controls.TwitterList -o c:\flex\wamp\www\Twitter\TwitterList.swc
Previously i posted a very useful class to categorize multi-dimensional array. I wrote another one that is just an alternative for array_unique function.
This extension notifies you with latest London underground tube updates. You can click on the browser button and check the status of any tube line.By default the extension updates the status in every 5 mins.
In the second example I am going to use Standard PHP Library (SPL) to notify all attendees about the party location change. SPL has 2 interfaces and a Class for Observer.
© 2008
Gaurav Jassal