Flash

9 Feb 2009

Swiz: Inversion of Control/Dependency Injection framework for Flex and ActionScript

A few days ago I stumbled upon Swiz, which bills itself as the "brutally simple micro-architecture for Rich Internet Application development with Adobe Flex." If the term micro-architecture or the buzzword Rich Internet Application haven't scared you off yet, read on, because it really is a lovely little framework.

(more...)

A lovely little framework called Swiz

8 Feb 2009

If you're using code-behind in your AIR apps, there's a little gotcha you should watch out for: Flex Builder doesn't like it if you include your code behind class in the root package.

For example, if your main MXML file is Main.mxml and your code-behind class is MainClass.as, Flex Builder gets confused and thinks that there should be two application configuration files (one for the MXML file and one for the AS file.) If your app.xml file is named Main-app.xml, you'll get an error along the lines of Adobe AIR application is missing the corresponding MainClass-app.xml.

(more...)

Code-behind gotcha in Flex Builder for AIR apps

2 Feb 2009

You've embedded your font via DefineFont4 in Gumbo using either CSS or ActionScript, but, try as you might, the embedded font is not showing up in your project. If you were migrating a Flex 3 project in Flex Builder to Gumbo and you were previously embedding fonts, check your project settings and look under compiler flags to see if you find the following flag:

-managers flash.fonts.AFEFontManager

(more...)

Fonts not embedding in Gumbo?

31 Jan 2009

If you're having trouble getting word wrapping to work correctly in your mx:Text components when using minWidth and maxWidth, and setting width to a percentage (e.g., minWidth="0" maxWidth="300" width="100%"), it's not you, it's the Flex SDK (see bug 12826, reported by Tom Bray).

The fix, as provided by Mike Schiff, has been implemented in the SDK but until it is released you can extend mx:Text and implement it in your own projects:

(more...)

Flex SDK mx:Text component word wrap bug fix

30 Jan 2009

Fotd

Today is Flash on Twitter Day. Your mission: get at least 1 Flasher to join Twitter & tweet. Pls. retweet. #fotd (retweet this!)

(more...)

Flash on Twitter Day: get one Flasher to join Twitter.