It’s been a while since I’ve gotten to blog about Flex 4/Gumbo, and with some exciting news I figured it was time to get back on track. I wanted to think of an example of something that may be frequently used across Flex/AIR projects that will greatly benefit from the Flex 4 architecture and a Login Form seemed like a good place to start. So today we’ll review a I created in Flex 4. Follow the link to checkout the code from GitHub.
This one had me frustrated for the past hour. I’ve been writing integration tests for a Rails project and got stuck on an error when I was trying to test that a file upload worked successfully and asserted a redirection was occuring correctly, but ran into the following error:
Expected response to be a <:redirect>, but was <500><"No HTTP_REFERER was set in the request to this action, so
redirect_to :back could not be called successfully. If this
is a test, make sure to specify
request.env[\"HTTP_REFERER\"].">
What a lovely error message to send me on a goose chase trying to set HTTP_REFERER directly on the @request as instructed.
This continued to spit out the same error. I finally stumbled across that held the answer. The HTTP_REFERER is not set the same way in an integration test:
I just released a minor update to to fix a bug the original release had that caused the ANT commands to fail on Windows. If you’ve already installed the gem before, then simply run:
$> gem update puremvc-gen
to get the new version. If you’re installing for the first time, refer to the original blog post for instructions.
I’ve been gitting into (clever, I know) lately, so I was trying to migrate my git commits for a project back into an existing subversion repository – another post coming on that later.
When trying to run to import my subversion repository into git I got the following error, followed by a Perl stack trace:
I just published a code generation tool I’ve been working on lately. It’s an ANT-based tool, but is distributed via , which allows it to be easily installed as a command-line tool once you have , rubygems, and installed.
Once you have those programs installed, simply enter ($> just denotes you are at a prompt on the command line)
$> gem install puremvc-gen
and the tool will be installed. Read on to see how to use it…
I needed to display an Image inside of a ComboBox for a recent project. The image of a selectedItem needed to appear in the ComboBox when it is collapsed and the image needed to be specified as a String.
I was surprised that a quick search didn’t find any components to allow this. The closest was a , however this required the image to be embedded into the application.
So I simply extended ComboBox to include an Image within it, and added some sizing calculations so it would respect padding. An example follows below: Read the rest of this entry »
I created a Google Code repository for my winning submission to the Adobe AIR Cookbook Cook-off. The contains the source, an ANT file to create the SWC, and an example tree to demonstrate how to use it.
If you haven’t read about MigrAIRable yet, it is a solution to allow your serialized data structures to have migrations, so that adding new fields to later versions to your class will not break your serialization when reading older versions of the data.
If you’re at this week, come checkout the session where I, along with the two runner-ups, will be panelists.
I’ll be presenting an introduction to Flex tonight at . If you’ve been wondering what Flex is and have been meaning to look into it, this presentation will be right up your alley.
The presentation slides and code will be posted at after the presentation.
I was waiting to post this until the results were announced which they were today. O’Reilly just of the and I’m pleased to say I won the grand prize!
My recipe was . Thanks to anyone who voted for it.
I have a follow-up recipe I haven’t gotten to write up yet, but I’ll try to get it up in the next week. It will provide a solution to add the marker which is required for this serialization to work to the front of your structures if you already have files being serialized in an existing AIR application and you want to start taking advantage of this migration technique.
NOTE: View my comment below for updated code on making this work with the latest SDK (as of 5/25/09).
A few days ago one of the commit messages in the mentioned some work for advanced CSS was beginning. I tried to create an example of using a descendant selector as well as an ID selector, but neither worked.
Tonight, another commit message said that this was now in place by default (I guess it would have worked earlier, but I needed to be specify a compiler argument). But now, after rebuilding the latest checkout of you should now be able to compile the following example to see the advanced CSS selectors working. Below is the SWF (you’ll need to view it) and the code follows: