Archive for the ‘Flash Platform’ Category

Twitter Search Demo using Robotlegs and Signals

In light of my recent post about why Robotlegs benefits from AS3-Signals I thought it was only fitting that I updated my Twitter Search demo! This was really easy to do; partly because the demo is so small. It also allowed me to use interfaces to reference view components in the mediators (one of the advantages of using Signals). The use of interfaces makes it really easy to swap out the view for something different, like a mobile version, without changing any core functionality. Anyway, click the image below to view the demo; view source is enabled and I’ve included the libs and html-template folders this time so it should be easier for you to compile!

Continue reading »

Posted by Mark on March 8th, 2010
 

Why Robotlegs benefits from AS3-Signals

My problem with using the Event Model and Robotlegs

One of the things that bugs me about the use of the event model with Robotlegs is that Mediators are tightly coupled with the views. Take my Twitter Search Demo for example, the SearchEntryMediator class expects an instance of the SearchEntry class as its view, see below.

Continue reading »

Posted by Mark on March 8th, 2010
 

Twitter Search Demo using Robotlegs and Events

I’ve had chance to play with Robotlegs this weekend and have really enjoyed it. It’s really lightweight and you find that you spend more time coding rather than repeating the same tasks like you would do in other frameworks.

The first demo I put together was a simple Twitter Search application, using the Twitter Search API. You can see the demo in all it’s glory by clicking the image below! View Source is enabled so you can download the source and have a play; you will need the Robotlegs SWC to compile though, you’ll find this on the Robotlegs website. If you have any feedback or questions please leave a comment below!
Continue reading »

Posted by Mark on March 7th, 2010
 

Getting Started with Robotlegs

Robotlegs logo

Robotlegs has been gaining a lot of ground over the last few months within the Flash community, and so I thought it was about time I gave it a shot. This post includes some of the resources I found really useful when getting started with the framework.
Continue reading »

Posted by Mark on March 7th, 2010
 

HYPE ShapeLayout Experiment

I couldn’t resist sharing one of my recent experiments with the HYPE framework (it also uses the MinimalComps component set). The example makes use of the ObjectPool, ColorPool and ShapeLayout classes. It’s really cool that you can put stuff like this together in just a few hours. I will be adding the source to GitHub soon, which should hopefully make it more interesting!

Update: The source code is now available.
Continue reading »

Posted by Mark on February 19th, 2010
 

FileReference woes on MACs

Today I found out (the hard way) that there are several issues that can occur when trying to upload files using the FileReference class on MACs.

FileReference.type always returns null

It’s often that case that you want to restrict the file type the user can upload, or perform different processes depending on the type of file uploaded. However the type property of a FileReference object always returns null on MACs; to work around this you must get the file extension manually. To do this you can use the following code (it’s good practice to always convert the file extension to lower case before working with it).
Continue reading »

Posted by Mark on February 17th, 2010