
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 »
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 »
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 »
Tutorial Overview
This tutorial will build upon the Introduction to using the StatefulToolkit example; it will add the ability to utilize the Clipboard in our example. The example will use the ClipboardUtil, which is a utility class included in the toolkit that allows the user to copy and paste objects using the clipboard. The example application will build upon the last one; it will allow the user to position four circles, to save and load the state of the circles (i.e. where the circles are positioned) and to copy and paste the circles. The example can be seen here and source files are available.
Preparation
Before you being implementing this tutorial make sure you have the latest version of the StatefulToolkit SWC, and that you’re project is set to target Flash Player 10 (if you want to target FP9, simple replace the Vector with an array in the circle container) . This tutorial also uses Keith Peter’s Minimal Comps component set to create the buttons in the application so you may want to grab the SWC for that too, but you can use your own buttons if you prefer. Both SWC files are included in the available flex project.
Continue reading »
I’ve always wanted to create my own WordPress theme for my site, but haven’t had the time (or patience!) before. I was hoping to have it complete by the new year but it took a back seat whilst I worked on the StatefulToolkit. Over the past week I’ve had chance to implement the design, and here it is! I hope you like it.
Now to get back to the StatefulToolkit…
Tutorial Overview
In this tutorial I’ll take you through the basic premise behind the StatefulToolkit and demonstrate how it can be used in a project. If you haven’t heard of StatefulToolkit before then be sure to read up on it. This example will also demonstrate use of the FileUtil, which is a utility class included in the toolkit that allows the user to load and save states. The application is very basic and will allow the user to position four circles and to save and load the state of the circles (i.e. where the circles are positioned). The example can be seen here and source files are available.
Preparation
Before you being implementing this tutorial make sure you have the latest version of the StatefulToolkit SWC, and that you’re project is set to target Flash Player 10 (if you want to target FP9, simple replace the Vector with an array in the circle container) . This tutorial also uses Keith Peter’s Minimal Comps component set to create the buttons in the application so you may want to grab the SWC for that too, but you can use your own buttons if you prefer.
Continue reading »