Presented at 360|Flex 2012 in Denver, Colorado.
Viewing the ‘Flex’ Category
It’s almost time for another 360|Flex conference! This conference will be held in Denver, Colorado, April 15-18, 2012. Get your tickets fast while discounts are available! It’s always a huge opportunity to learn new things and get in touch and have fun with the community.
Robotlegs is a fantastic micro-architecture for ActionScript. One pattern used with Robotlegs is the command pattern. Commands are generally short-lived objects that execute a segment of code in response to an event. By encapsulating code in a command, you can maintain low coupling in your app (the view and the command don’t need to be aware of each other) and reduce duplicate code. See the Robotlegs Best Practices page for more info regarding commands.
You may run into situations where you wish to batch commands. Macrobot simplifies this process and provides two ways to batch commands:
Sequence: The batch of commands will be executed in order. The second command will not be executed until the first is complete, the third command will not be executed until the second is complete, and so on. The batch will not be complete until all its commands are complete.
Parallel: The batch of commands will be executed as quickly as possible without respect to completion of any of the other commands. The commands may complete out-of-order. The batch as a whole will not be complete until all its commands are complete. Continue reading »
Here’s a Spark-based progress bar. This component provides the ability to set an “event source” like a URLLoader. When the event source dispatches progress events, the progress bar will automatically update. On the other hand, if you don’t need automatic updating from an event source and just want to set a min, max, and current value, you really don’t need this component. Instead, you can use the Range component that comes with the Flex SDK and skin it just like this one is skinned. Right click the app to view the source. Enjoy!
In my last post, Collections And Chaining For Separate Presentation, I mentioned a few data structures for holding a group of objects. These are great for their purpose but sometimes they can be enhanced for a particular project. In this post, I’ll show you a great way to maintain a custom index for a group of items for easy and efficient lookup. Continue reading »
The purpose of this post is to describe the various collection data structures used in Flex and how they relate. Once we understand that, we’ll look at a problem I see commonly in Flex apps regarding separate collection presentations and how to fix it. Continue reading »
Along with Flex came IViewCursor which provides a way to itererate through ICollectionView classes like ArrayCollection and XMLListCollection. Sometimes though we’re dealing with Vector or Array or are developing an ActionScript-only project. Here’s a cursor/iterator that will allow you to navigate a Vector or Array: Continue reading »
Scrapbooking just went from crafty women huddled around piles of paper shreds to online digital awesomeness. Not that crafty women or piles of paper shreds aren’t awesome. Nay. But for many, this translates into finding babysitters or a willing spouse; finding large blocks of time; purchasing a gajillion expensive scissors, stamps, buttons, papers, and ribbons; finding storage for such paraphernalia; and discovering craftiness from within. I mean, seriously, does this or this look fun to clean up? I’ll pass.
For the last year and a half at Rain I’ve been working on Studio J, Close To My Heart‘s flagship online scrapbooking application. It’s been quite a ride but the result is really quite revolutionary. Continue reading »
I got my my wife a Kindle for her birthday. She loves it. But she loves beating my high score on the Shuffled Row game even more. So, I made the Shuffled Row Solver. Cheating, you say? Is it cheating to use a dish washer to wash dishes? I submit it’s not. I’m kidding, I’m kidding…of course it’s cheating but it was still fun to make and fun to see her face when she saw my “high score”. Yes, I told her about the app afterward and gave her full credit for continually beating my score. Continue reading »
Go ahead. Dump your wallet out on your desk and filter through your receipts and frequent-diner cards trying to find that one business card with that one phone number. Then proceed to pick up that phone and take on the monumental task of manually dialing each and every grueling digit. Pshhhh. That’s so last year.
Introducing SpeedDial. Run the app and click on a Google contact with a phone number. Your phone will ring. You pick up. The contact’s phone will ring. They pick up. Done. Want to call them again? Click their name. Done. Again? Click their name. Done. Continue reading »