I was tasked with researching mobile development using Flash and Flex the day before the 4.5.1 update for FB and the Flex SDK was released. Mobile development has been available since the 4.5 update (the release of CS 5.5), but that release had some limits with respect to the use of the Flex framework for mobile (Compatibility Matrix for Mobile). Exciting times to be had for Flash and Flex developers.
If developing with the Flex framework for mobile, there are some restrictions as to what components can/should be used (Restrictions on using Spark and MX components in a mobile application). You can see there are actually new components which were created specifically for mobile. Those components are on the first row of the component table. Also check out Optimize Skinning Basics.
If you are looking to build for iOS devices, then you may want to have a look at the first video on this page. At about 3 minutes in Serge talks about how to get the certificates from the iOS developer website. For more information on this check out Adobe’s site on iOS certificates. Also check out this blog entry on How to build your Flex app for iOS with AIR 2.6 which shows you step by step what you need to do.
When trying to connect and run my mobile app on some Android devices such as my Android phone and Galaxy Tab (Connect Google Android devices), I had the same problem described here. Unfortunately following Brent’s steps to fix the issue did not work for me. I had to download the device drivers for each specific device and install them on the computer which the device is connected to. Once I installed the device drivers I was able to run my app on all my Android devices.
A simple design pattern I utilize often is the Singleton Design Pattern. There is a descent amount of code needed to generate a proper singleton class in ActionScript. I’ve created a nice template for FDT which will help to quickly create a Singleton class for AS 3.0.
Tags: design patterns
This was a little tricky to figure out. I needed to make a Spark Label truncate the text if it exceeded the given bounds of the Label. But on the documentation for the Label there is only a few mentions of the word truncate in the description of the class. It tells you: (more…)
FDT is an awesome development tool to code Flash and Flex projects. I love the ability to create custom templates. I’ve recently been updating some old templates which I created for PureMVC a while ago. Over time I have added new templates for classes which I now regularly use such as (more…)
I’ve recently been trying to create an Ant script to generate ASDoc style documentation for some shared common code libraries. I’ve run into a number of issues and it was hard to find any good documentation or blog posts to help me solve my problems. So I am going to cover some of the issues I had and provide some example code of the Ant script I ended up using to get my ASDoc generation to work.
While looking through some blogs, I ran across one with what I feel is a good quote: (more…)
I just wanted to post about this so I don’t forget. I noticed that every time I opened a swf created using the Flex4 SDK, I would get a bunch of errors:
Error #2032: Stream Error. URL: file:///C:/home/projects/blah/textLayout_18.104.22.1684.swf (more…)
I was checking out some of the features on the Flash Builder plug-in SourceMate. Many of the features already exist in FDT (no surprise). But SourceMate takes some of those features and does it a little better. And then there are some features in SourceMate which would be an awesome addition to FDT. I am curious (more…)
So I wanted to delve into the world of making an AIR application. From what I have heard, it’s almost as easy as making a Flex application. But getting things set up wasn’t as easy as I had hoped. I spent quite some time searching around the internets trying to find answers to many problems I had. Fortunately (more…)