All Articles

Learning Employee Directory 5. Events

Return to table of contents ED defines 4 custom events,CommandCompleteEventCommandProgressEventDataSynchronizationEventSelectedItemChangeEvent The main job of these custom events seems to define constant (say public static...
Xu Cui
23 sec read

Learning Employee Directory 2.2 Commands

Return to table of contents All command classes are inherited from class Command. By name, commands perform something. Every command has execute() which does...
Xu Cui
33 sec read

Learning Employee Directory 3.3 Component

Return to table of contents 1. CustomAutoComplete This component can be very useful. It pops up a list of suggestions based on characters entered...
Xu Cui
30 sec read

Learning Employee Directory 4. Flow

Return to table of contents After the application is initialized, Event “applicationComplete” is dispatched and the following function is called: // in employeedirectory.mxml...
Xu Cui
10 sec read

Learning Employee Directory 5.1 Event bubble

Return to table of contents In ApplicationUI.mxml (init()), you will find the following two lines: // in ApplicationUI.mxml, in init() titleControls.addEventListener( “showHelp”, showHelpScreen...
Xu Cui
24 sec read

Learning Employee Directory 3.2 Size

Return to table of contents Which line(s) in the code determines the size of the application? This seemingly simple question did take me some...
Xu Cui
18 sec read

Learning Employee Directory 2.1 Singleton pattern

Return to table of contents While reading ED code, I frequently encounter singleton pattern. A singleton class is a class you can only instantiate...
Xu Cui
41 sec read

Learning Employee Directory 3.1 Style

Return to table of contents CSS is very convenient to control the appearance of the user interface. Let’s see the following code snippet inside...
Xu Cui
25 sec read

Learning Employee Directory 3. UI

Return to table of contents When I downloaded and launched ED, I was impressed by its elegant user interface. So how is implemented? The...
Xu Cui
2 min read

Learning Employee Directory 2. Structure

Return to table of contents While most other Adobe AIR sample applications have only a single mxml file, ED has many folders and files....
Xu Cui
3 min read