Nov 20
Here is finally the last part of this serie. I will now create the last layer of Mihai Corlan’s application replacement.
Just to remind you, in the 1st part, I built a prototype of Acceleo template to generate the Doctrine2 php entities from a UML model. In the 2nd part, I built an Acceleo template to generate the skeletons of the php services that use these entities. In the 3rd part, I used the 1st entity UML diagram to generate the actionscript Value Objects from another Acceleo template. This lead to a fully usable as3 code layer, no additionnal code was required in this layer… but the as3 Value Objects layer is actually usable only by the last layer that we are about to generate with a 4th template, the actionscript service wrappers.
Continue reading »

Loading ...
Written by Arnaud
Tags: Acceleo, actionscript, Code generation, Flex, Php, UML, ZendAMF
Nov 17
Here comes the 3rd part of this serie about PHP/Flex code generation using Acceleo, coupled with a UML diagramming tool, Modelio.
In the 1st part, I built a prototype of Acceleo template to generate the Doctrine2 entities from a UML model. In the 2nd part, I built an Acceleo template to generate the skeletons of some php services that manage our doctrine2 entities. All based on the great work of Mihai Corlan about the implementation of a Doctrine2-ZendAmf-Flex stack. With these 2 first parts, the server side of the application has been automatically generated and supplemented with the implementation of the code.
It is now time to focus on the client side to replace the actionscript code generated by FB4 for the service wrappers and the value objects (code generated through the use of the Data/Service features of FB4 - very handy feature anyway ). Let’s start with the AS3 value objects.
Continue reading »

Loading ...
Written by Arnaud
Tags: Acceleo, actionscript, Code generation, Flex, Php, UML, ZendAMF
Sep 28
This is quite strange that this function is tagged as private in the DataGrid code. Then, it doesn’t appear in the documentation although this is really useful.
dataGrid.mx_internal::shiftColumns(oldindex, newindex, event); |
This will move the column at the oldindex to the newindex. And you can also use an event.
Of course, to use the mx_internal namespace, you need to add the following code:
import mx.core.mx_internal;
use namespace mx_internal; |
So ok… 3 lines of code.

Loading ...
Written by Arnaud
Tags: actionscript, DataGrid, Flex
Oct 30
In this serie (that was supposed to be closed) about executing a multi-statement query in AIR (ie a query with several statements as INSERT, UPDATE, DELETE and even CREATE TABLE), I gave examples of queuing queries, looping on queries and at last, working with dependant queries.
Let’s now mix everything.
Continue reading »

Loading ...
Written by Arnaud
Tags: actionscript, AIR, SQLite
Oct 25
In this last chapter, I want to focus on dependant queries.
What I call dependant queries is queries that use the result of a previous one into their own statement.
Continue reading »

Loading ...
Written by Arnaud
Tags: actionscript, AIR, SQLite