adobe air

amfphp bug? Negative integer becomes big positive

In local actionscript, if you have an object like: o.x = 6; o.y = -5; Then send this object to remote server using amfphp, the object becomes o = 6; o = 4294967290; This could be a bug…
Xu Cui
7 sec read

sqlite: update id automatically in a relational table

Let’s say we have three tables: user, paper, userPaperRelation. user has columns id and username paper has column id and title userPaperRelation has columns userID and paperID. userID corresponds to the id in user table; paperID corresponds to
Xu Cui
22 sec read

Learning Employee Directory 2.3 Cairngorm

Return to table of contents
Xu Cui
1 sec read

Learning Employee Directory 5.2 event clone

Return to table of contents ED’s custom events don’t override the clone() method: it doesn’t need because the events are never redispatched. When I test one of my applications I kept getting the following error: Error #1034: Type Co
Xu Cui
22 sec read

mymvc: Adobe AIR (Flex) application framework

update: Checkout MyMVC official website. —- I find software architecture is quite an interesting topic as I am learning it. A program is like an organization — how to assemble units such that the entire program is “good”? By &
Xu Cui
3 min read

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 const COMPLETE : String = &
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 the job, and emits progress and complete event, and possibly error event. The base class, Co
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 by the user. This is a very simple example on how to use it: <controls:CustomAutoComplete id="se
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 ui.init(); Go to ApplicationUI.mxml, we find ui.init() issues t
Xu Cui
10 sec read