Sometime after Flex 4 beta 2 was released, they changed the main way to change the color of a sparkSkin from ‘baseColor’ to ‘chromeColor’. So, if you get an error in eclipse about how baseColor doesn’t exist, but the tutorials are telling you that it does, try chromeColor instead.
Entries Tagged 'Flex' ↓
Flex 4 gotcha – baseColor changed to chromeColor
March 12th, 2010 — Flex
Using Flex for pushing data from BlazeDS to HTML
December 9th, 2009 — Flex, Projects
Here’s my presentation for December’s SeaFlexUG meeting:
Android ItemRenderers – Updated
November 27th, 2009 — Flex
I’ve created a project for showing off ItemRenderers. Anyone can view it here:
Commits to Flex SDK
March 28th, 2009 — Flex
First one was an addition to the border, to ensure that borders were drawn with the correct radius:
http://bugs.adobe.com/jira/browse/SDK-16147
Second is just a tooltip fix, but EVERY fix committed is a testament to the power of Flex+Open Source!!!!!!!!
Showing us your Flex Ninjatude
February 22nd, 2009 — Flex

Several of the guys @ the SeaFlex User Group started the BugQuash. Sign Up, or go crying home to mommy.
SeattleFUG Project: Extending the Code Jam Project
October 12th, 2008 — Flex
Last thursday a bunch of members of the User Group gathered around and decided that a good way to learn about new tech was to just do it, and considering that I am associated with a project that is very close to 1.0, and has set goals for 2.0, we decided to work on the ResourceLocator that was developed at the San Jose 2008 Flex 360 Charity Code Jam.
So, the code isn’t there yet, we’re waiting for 1.0, which should be finished in the next couple weeks. But I’ve invited all of the members that want to participate to take a look at the code, and if they get really excited about it, they can even contribute and fix one of the bugs that are still outstanding. This invitation is NOT restricted to my user group members, anyone can join, just contact me (dusty (dot) jewett -at- gmail (dot) com).
One thing I promised the members was a bit of guidance, so I’m linking to Laura’s Flex 360 talk about Mate. Unfortunately, the talk on Degrafa hasn’t been posted yet, but there are plenty of examples on the site. AMFPHP has been around for a long while, but I’ve enjoyed Sephiroth’s tutorials. I’ll be explaining specific things in our user group meeting on the 13th, and while we don’t have the cool setup that Flex360 did, I should be able to come up with some sort of recording of it.
Singleton-esque, self-aware ‘Kind’ Classes
September 8th, 2008 — AIR, Flex, Projects
I recently started a project of converting an older flex app to an AIR app. This app has to scan through a bunch of files, and classify certain types of media based on the location and file extension. Then it saves a manifest of the media to an xml file that can be loaded (without scanning every time).
I started out with a Kind class (think CollectionEventKind) that had the types as strings… but then I had to figure out how to store the regular expressions to make them easily accessible… Then I remembered that while everyone just uses Strings, static const vars can be any class, including it’s own class. So I came up with this class that you can use constants, or locate a specific constant. Code after the fold.
Continue reading →
Launching Files from Adobe Air
September 4th, 2008 — Flex, Projects
So, this takes the long way around, and is not a good solution for mass-distributed applications, but if you’re lucky enough to have a managed environment that you can push installs down the pipe, this is a way to let your users launch files from AIR.
First, download Switchboard.
Second, add Switchboard to your libs.
Third, use this script:
private function openFile(f:File):void{
Client.init(super.applicationID);
var message:Message = new Message();
var script:String = "var runScript = function(fileName){\n" +
" var theFile = new File(fileName);\n" +
" if(!theFile.exists) return false;\n" +
" theFile.execute();\n" +
"}\n" +
"runScript(\"" + f.url.substr(7) + "\");";
message.body = script;
message.target = "bridge";
message.onError = function( msg: Message ) : void {
// put the error message into the result box
trace("Error: " + msg.body);
}
message.send();
status = “Opening ” + f.name;
Client.close();
}
This opens up bridge, then uses Bridge to run the “execute()” command that ExtendScript (or whatever they’re calling it) has available.
Now… while this is neither simple or elegant, it gets the job done. I’d rather use Merapi, but my app has to ship before Merapi can go stable.
Flex Code Jam – Now with ∞ more open source code.
August 29th, 2008 — Flex, Flex Code Jam
The Flex Code Jam Google Code Project is officially LIVE!
I’ve added all of our source code to the repository, including the code from the Seattle 2007 Code Jam (which is unfortunately unfinished…). We’re heading towards a 1.0 release for the Second Harvest food bank, then after 1.0 we’ll be abstracting some of the pieces, so that it can be a plug-n-play widget for any organization that wants to offer a slick location-based-search. (Though it WILL be tailored to non-profits)
The code is free to download and try out. We don’t have documentation on how to set up the AMF-PHP yet, but it’s coming… it shouldn’t be too hard, however. We have 7 open tickets as of this post, so feel free to dig in and help us release 1.0. If you work on one of the tickets, let me know… I’ll add you to the project as soon as you have code to commit.
Debugging AIR Drag and Drop
So… you thought you’d be cool and throw a break point on some DRAG_ENTER code, but after you’re done debugging, you’re left with a little floating icon on your desktop.

Never fear, you don’t have to restart your entire computer, open up Taskmanager and you’ll see an application called ‘Drag’. You can kill this application and the icon will disappear. If you don’t see this app, close Eclipse and find the process called ‘adl.exe’ and kill this process.
Restart averted, Yay!
