Scripts, Tools & Methods Developed at Hook
42 Posts since November, 2009
This post is an example project that shows the basics of setting up a project using Hook’s MicroMVC system. This project shows you how to use the various components of MicroMVC and features like the event bubbling. There are a lot of different ways to set up a project so this post is intended as [...]
MicroMVC is a light weight, AS2 MVC framework intended for applications that have tight file weight restrictions. Its goal is to provide an easy MVC set up and improve on some of the limitations of the AS2 platform. The project started as an AS2 port of the fantastic AS3 framework RobotLegs combined with some ideas from casalib.org and pureMVC.
A new version of this panel can be downloaded here. The Flash IDE has the ability to position shapes and instances on fractional pixels; unfortunately the Flash player does not have the ability to correctly render items placed on fractional pixels. The result is that anything not placed on whole pixels will look like crap [...]
Flash 10 saw the introduction of several new API methods that enabled much more control over audio data and playback. Flash 10 now includes the ability to access sound data directly as a ByteArray. This is done via the new event SampleDataEvent. This event is dispatched from a Sound when the player requests new audio [...]
Often in an application it is necessary to be able to define and then switch the application state based on either user input or data updates. The Finite State Machine (FSM) is our version of a State Machine in Actionscript 3. The FSM uses StateControllers to manage lists of State Objects. A State Object is [...]
Sound is one of the areas in Flash that seems to cause the most frustration. The included sound classes are adequate for basic playback but don’t provide enough capability on their own for larger projects. The area we found to be most lacking is in organization and management of lots of sounds. In order to [...]