To build flex application with ant without depending on FlexBuilder™ and to have statically linked and dynamically loaded libraries from separate flex projects. Adobe calls them “Component Libraries” and “Runtime Shared Libraries”.
Adobe Flex ecosystem is in dark ages of automation and enterprise tools. Their flagship product in automation department is an ant task written by amateur intern. They don’t even bother to escape file paths when the call to mxml compiler are made from this ant task wrapper …(Ask me how I know). So the ant tasks do not work and the documentation for the mxmlc and compc are confusing and cover 50% of the features. But enough about the bad, lets get on to the solution.
Continue reading How to build any Flex project with Ant the right way
I just wanted to share my thoughts about the frameworks in the Flex environment. You may have noticed that I am in love with Spring when I write Java code, but how about Flex? For a simple example application I go with KISS (keep it stupid simple) approach, but for serious data driven app I utilize a framework.
How to choose a framework that works for You
Firs of all you need to know what you are looking for, because if you do not know where you are going, any path will take you there. When I first started to p[lay with Flex about 3 years ago, I noticed that I need to add some structure to the application. Since I was already using Spring I started looking for a framework. At that point in time there where only two alternatives worth looking at: Cairngorm (heavily pushed by Adobe) and PureMVC.
Continue reading Flex Frameworks – PuremVC, Mate, Cairngorm and Robotlegs
Once you are finished with this article, you will be able to store application data in Google App Engine Data store and consume REST service using flex client.
Common Problems and Solutions
In my personal opinion flash player security model is the biggest piece of bullshit I ever encountered. If you sit down and thing just for 10 seconds about how it is implemented you will have to agree that it provides NO security at all. It just makes impossible so do certain things, that’s all. Adobe needs to drop it now.
Here is the problem that we have with REST and Google app engine: Adobe’s implementation of HTTPService only supports GET and POST, to consume REST we need at least 3 methods: GET, POST and DELETE. We can live without PUT – if id is null JDO will create a new persisted object, if it is set JDO will update it. But we still do not have support for DELETE. Continue reading Goolge app engine + java + spring + REST + JSON + Flex – Part 2
I have been inching to try out google app engine and its capabilities, but did not wan to give up the spring. So to day I am starting on my prototype involving Goolge app engine + java + spring + REST + JSON.
The end product will be spring mvc app running in google app engine handling GET, POST, PUT and DELETE http requests with JSON objects in and out utilizing JDO and seesions. This will give me a platform to write clients in Objective C for Ipod/Iphone (aka Coco Touch), Android, Flex, Ajax and maybe couple more platforms.
I am writing this while I am downloading Spring 3.0RC1. Will try to give daily updates if I can. If my prototype works as expected (all the research points to yes), I will have sample project available for download. There will be some trouble getting Flex to talk REST, since it only supports GET and POST and like most Adobe development stuff is not of the greatest maturity……. (opening new tab to check if we have new version of flex… still beta). Anyhow, Flex REST part will be interesting, I have already done some hacking in that area and it can be done – I have to write http client by hand, but who does not like an interesting challenge?
So here you have it. Next update when I have Spring 3 mvc inside google app engine up and running.
The part 1 is now online.
The part 2 is now online.
The part 3 is now online
The part 4 is now online