Flextrine 0.7 released – now with ZendAMF!

After much soul searching I eventually decided to put in the time to convert Flextrine from using AMFPHP to ZendAMF.  There were a few reasons I decided to make this move, but eventually it boiled down to the fact that quite a few people had asked me to do so.  In retrospect it was certainly the right thing to do – ZendAMF has the green light from Adobe, its licence is LGPL instead of GPL and the cleaner code base means that the changes Flextrine requires can be implemented as overridden classes instead of having to modify the ZendAMF core.  This particularly is great news because it means that you can use Flextrine directly with the standard Zend framework installation, whereas previously you could only use the version of AMFPHP bundled with Flextrine.

Functionally speaking things remain exactly the same, and we continue to approach our stable release alongside Doctrine 2.

The new version of Flextrine can be downloaded from www.flextrine.com.  Note that if you are upgrading from a previous version of Flextrine you will need to regenerate your AS3 entities.

4 comments

  1. Regardless the name of the framework, can I use Flextrine in AS3 Projects, or only Flex 3/4 Projects? (both by using FlashDevelop with Flex SDK)

    It compiles well, but when I run, I always get this error

    Fault: [FaultEvent fault=[RPC Fault faultString=”Send failed” faultCode=”Client.Error.MessageSend” faultDetail=”Channel.Connect.Failed error Invalid URL url: ‘null'”] messageId=”07639434-873D-C5D2-F02C-1BFE8D66C524″ type=”fault” bubbles=false cancelable=true eventPhase=2]

    If I create a Flex Project, It works well. It seems like it can’t gather the url.

  2. Hey Anderson,

    Flextrine makes use of various Flex specific features (specifically [Bindable] and the mx.collection.* classes) so you need to compile in the Flex framework. Having said that you can create a Flex project in FlashDevelop and then just code in straight AS3 without using MXML or anything else to do with Flex.

    Not sure about your error – have you definitely set the gateway URL in your AS3 application?

    var configuration:Configuration = new Configuration(); configuration.gateway = “http://localhost/myflextrineproject/gateway.php”;
    em.setConfiguration(configuration);

    If so please create an issue at http://code.google.com/p/flextrine2/issues/list with any useful details.

    Cheers,

    Dave

  3. To test your suggestion, I used the current Flex Project that works (Your address book example), and created a simple Main.as, and I copied and changed the code of Main.mxml to adapt it; Main.mxml and Main.as in the project. I put Main.as as the main file (command Always Compile), but it gives the same error.
    Can you give the address book example without mxml and only using *.as? my e-mail is nocturne.pe@gmail.com
    Thanks

  4. I created an issue and some comments about it. It’s very difficult to implement the application that is more than 1.5MB. I’ve noticed the error is not from Flextrine, is from AMFChannel, but if you can improve Flextrine to work with pure as3 code in Flex SDK, the framework can be accessible for medium-size applications.

Leave a Reply

Your email address will not be published. Required fields are marked *