Archives For Flex

Peachpit Press, the publisher of my book “[intlink id=”1579″ type=”page”]Effortless Flex 4 Development[/intlink]” (technically, Peachpit’s sister company New Riders is the publisher), has posted excerpts from the book available for reading—for free—online. As of today, you can read on the following subjects:

You can see all the articles and blog posts that I’ve written for Peachpit Press by viewing my writer’s page there.

In conjunction with Adobe MAX 2010, which just wrapped up in Los Angeles, Adobe has announced the new features planned for the next release of Flash Builder, code named “Burrito”. As mentioned previously, the next release of the Flex SDK, code named “Hero”, focuses on mobile devices, and so does this next release of Flash Builder. In it, you’ll be able to designate a project as being for the mobile platform, meaning that Flash Builder will recommend the newer mobile-targeted components, when appropriate. The Flex-based applications will be able to run on supported (i.e., non-Apple) mobile devices through the Adobe AIR platform.

Secondary additions to Flash Builder include improved workflows and performance.

Somewhat ironically, considering the recent spat between Adobe and Apple, the next major version of Flex, codenamed “Hero”, will have specific support for developing Flash applications intended for mobile devices. Accomplishing this involves both adding new components and skins as well as making some modifications to existing components. Although Flash content can already run on some mobile devices, the smaller screen sizes can have unfortunate consequences. This new version of Flex, due out in beta version later this year, will address that issue by allowing for smarter scaling of the application’s size.

Using Flash with Yii

July 8, 2010

On my most recent Yii-based Web site, I decided to use a custom Flash application for part of the back-end administration of the site. The justification was simple: what the administrator needed to do was a bit complicated; lots of information had to be available but the user interface had to remain uncluttered and natural. The specific Web site provided a way to create and take online quizzes. In a separate process, the administrator could add and edit questions. In the Flash-based process, the administrator could associate any number of questions with a quiz (actually, a pool of questions would be associated with a quiz and X number of random questions would be pulled from that pool). The main issue, from a user interface perspective, was how to display the questions in an intelligent way. With other examples, I might create a form for adding or editing quizzes and within that form, the questions would be listed within a dropdown menu (actually a SELECT menu that displayed and allowed for the selection of multiple options). However, with this particular example, there was no good way to display the questions in a SELECT menu. Each question had a unique primary key, of course, but that’s not very useful to the administrator. The questions did not have unique names (what name do you give a question?) and the best indicator of a question was its prompt, which would be HTML, possibly containing images and videos. So, again, how do I display possibly hundreds of questions in a meaningful way?

My solution was to show the list of questions by number and, when the admin clicks on a specific question, they’d see a preview of that question’s prompt (i.e., the HTML) in a separate interface. Now I’ve got three areas in my UI: one for adding or editing the other quiz attributes, one for listing every question, and a third for displaying the particulars of a single question. Given all this, I thought having the admin drag the questions from one area to another would be the best way to associate a question with a quiz. I could have done all this using jQuery (the JavaScript framework Yii uses by default), but that would have taken me days to figure out how to use jQuery in this way. On the other hand, I knew I could develop this using Flex (a framework for creating Flash applications) in no time. I just didn’t know how to get Yii and Flash to play ball. It turns out not to be that hard… Continue Reading…

Peachpit Press, on their Web site, is in the process of publishing two series of “Five Tips in Five Days” blog posts that I have written. One is on the Flex 4 framework and the other is on the Flash Builder IDE. As of this writing, nine of the ten posts have gone live with the other one  expected tomorrow. All of the posts are written for those with an understanding of Flex 4 and Flash Builder, respectively, highlighting new or less-known features and concepts. But even if you aren’t familiar with either, you may want to take a gander at them to get a sense of what Flex 4 and Flash Builder are capable of doing. The best way to access them is through my reference page at Peachpit’s site.