Dec 23, 2010

Flex on the iPhone powered by ColdFusion

With the Ban lifted from cross compiling we can now compile our Flex apps and deploy them to iPhone.

Now you might think that only Flash CS5 can do this and only with Flash and action script but thats not true. You can actually cross compile full Flex apps which is really great stuff.

It's a bit of a pain to get started setting up the certificates and working out the options to set this up but once its done it really works.

We have a Flex 4 app that heavily used and using the cross compiler I was able to deploy this to the iPhone. Now we have to make modification to the app of course as it requires pressing buttons on a keyboard but these are minor changes that are required for any mobile device.

SO that means as of now we have a flex app that runs in the browser, in Air ( across OS's ), on Andriod devices and now on the iPhone.

I intend to do a few more follow up posts on how I set this up.


Dec 22, 2010

Flex Spark -> iPhone Cross compiler errors

#Edit - I solved this issue. Compiling from Flex/Flash builder with Spark components caused this. When I swapped to command line compilation my application compiled fine.


Anyone seen this and know what I'm doing wrong?

Exception in thread "main" java.lang.Error: Unable to find named traits: spark.components::Application
at adobe.abc.Domain.resolveTypeName(Domain.java:195)
at adobe.abc.Domain.resolveTypeName(Domain.java:112)
at adobe.abc.GlobalOptimizer$InputAbc.resolveTypeName(GlobalOptimizer.java:274)
at adobe.abc.GlobalOptimizer$InputAbc.readInstance(GlobalOptimizer.java:837)
at adobe.abc.GlobalOptimizer$InputAbc.readAbc(GlobalOptimizer.java:388)
at adobe.abc.GlobalOptimizer$InputAbc.readAbc(GlobalOptimizer.java:280)
at adobe.abc.LLVMEmitter.generateBitcode(LLVMEmitter.java:160)
at com.adobe.air.ipa.AOTCompiler.convertAbcToLlvmBitcode(AOTCompiler.java:329)
at com.adobe.air.ipa.AOTCompiler.GenerateMacBinary(AOTCompiler.java:600)
at com.adobe.air.ipa.IPAOutputStream.compileRootSwf(IPAOutputStream.java:196)
at com.adobe.air.ipa.IPAOutputStream.finalizeSig(IPAOutputStream.java:366)
at com.adobe.air.ADTPackager.createPackage(ADTPackager.java:65)
at com.adobe.air.ipa.IPAPackager.createPackage(IPAPackager.java:165)
at com.adobe.air.ADTEntrypoint.parseArgsAndGo(ADTEntrypoint.java:132)
at com.adobe.air.ipa.PFI.parseArgsAndGo(PFI.java:152)
at com.adobe.air.ADTEntrypoint.run(ADTEntrypoint.java:68)
at com.adobe.air.ipa.PFI.main(PFI.java:112)

Dec 7, 2010

Value Objects Railo and Flex with Magic functions

As mentioned I have had to setup a new Railo VPS and move all my older demos across. I decided to go with Bleeding edge so I get full script access. I was moving across one of my earlier Railo -> Flex demos and decided to change the code to use script only and here are the results. You can try run this by clicking the "Get" button.

It feels nice to use full script and at the moment at work we are working to ColdFusion 9 so I'm looking forward to more full script based components.

View source is enabled on the Flex widget.
Service.cfc

Person.cfc

Workign demo.



Here is how to enable "Magic Functions" in Railo

On CF9 you need to ensure this is set for the same results with Flex In the services-config.xml file :

Dec 1, 2010

mySQL dump all databases command

I recently had to move data from one server to another.  The serevr runs linux, Railo and mysql.  It's always a pain migrating databases bewteen servers but mysql makes this so easy:



This will prompt you for the root password but if you want to can add the password after the -p and not be prompted.

Thats it.  you can now run this and restore all your databases on the new server or pick through it and restore the ones you need.