Tag Archives: FlexJS

FlexJS Mobile

Recently, Peter put together a FlexJS app that did a relatively simple thing: it took a picture with a device’s camera and displayed it in the app.  What was cool about it is that it proved we can lightly wrap Apache Cordova plug-ins and use them in FlexJS apps.  Cordova looks like it can be the platform abstraction layer for FlexJS allowing you to create mobile apps in MXML and ActionScript that run in many more mobile devices than just Android and IOS.  The potential upside is that use of MXML and ActionScript will make you more productive than writing code in JavaScript.

Over the last couple of days I adjusted the compiler to smooth out the workflow a bit, improved the AS emulation of the Cordova Camera plugin and got it working on my phone.  It will be part of my presentation and demo at the 360|Flex conference next week.  There’s still spots available if you can get to San Jose and see it in person.

You can try it yourself if you want.  It is the CordovaCameraExample in the flex-asjs repo.  We’ll ship it in a FlexJS 0.0.2 release shortly.


FlexJS 0.0.1 released!

The Apache Flex community just approved the initial ‘alpha’ release of Apache FlexJS(tm) and the Apache Flex ‘FalconJX’ compiler that it uses.  This release has much improved integration with Flash Builder and might actually work with other IDEs like IntelliJ and FDT.

Apache FlexJS is a next-generation Flex SDK that enables developers to use MXML and ActionScript to not only create SWFs but also cross-compile the same MXML and ActionScript to HTML/JS/CSS so applications can run natively in browsers. The cross-compiled code can also be used in Apache Cordova (Adobe PhoneGap) mobile applications.

It is still an ‘alpha’ so expect lots of bugs and missing features, and it is not production-ready, but there should be enough there for you to get an idea of how it might work.  Feedback and suggestions are always welcome at the Apache Flex mailing list (dev@flex.apache.org) and bug base (https://issues.apache.org/jira/browse/FLEX/).

A simple way to try these releases is to use a pre-release of the InstallApacheFlex 3.0 application which is available at the following url: https://dist.apache.org/repos/dist/dev/flex/installer/3.0/rc7/binaries/

Choose Apache FlexJS 0.0.1 and it will create an Adobe Flash Builder-compatible SDK that uses the Falcon and FalconJX compilers to generate SWFs and HTML/JS/CSS output. See the README or the FlexJS wiki for more information. The FlexJS section of the wiki is at the following url: https://cwiki.apache.org/confluence/display/FLEX/FlexJS

Remember, this is open-source development the Apache Way.  You can contribute to the direction and development of FlexJS not only by trying the release and providing feedback, but also by writing code, tests, documentation and more and submitting those as patches through the bug base.

And if you want to discuss FlexJS with me in person, I’ll be at the 360|Flex conference in San Jose on May 15 and May 16.  I’m told there are still some tickets left so go to 360Flex.com and get yours and I’ll see you there.


What Should I Talk About @ 360|Flex 2014?

John Wilker, the organizer of 360|Flex and 360|Stack and other conferences has been bugging me and some others about what we might talk about at 360|Flex 2014 (rumored to be in the Bay Area in May).

For sure, I’ll do a presentation on FlexJS.  But I thought I’d see if there are any other topics folks would like to hear about, specifically, topics that would make you buy a ticket to come to the conference.

I could do a session on Flash Builder Profiler usage.  I could do a session on major performance problems I’ve found in customer’s apps.  I’ve never done this before, but I could try a “lab” session where you bring your app and your code and I’ll try to answer your questions about debugging and profiling.

Or, I could just set up a table somewhere when I’m not presenting and you can drop by and I’ll try to help you tune your app or solve some problem.

Anyway, ideas welcome!