Author Archives: shaun

About shaun

Web programmer into Flash, Flex, PHP, JavaScript, Ruby, Scala etc..

Review: Balsamiq Mockups

If you haven’t checked it out yet, head to Balsamiq and click Try it now.

Twitter Mockup

It doesn’t take much playing around to see the potential of Mockups. Continue reading

Posted in Uncategorized | Leave a comment

A Nice Eclipse Icon – Suited for Mac OS X

I’ve always found the default Eclipse App Icon to be a bit.. lacking. I’m pretty sure I’m not the only person who feels this way. Occasional quests to find a better icon have usually resulted in disappointment. My latest search lead me to this icon. Not great, but it inspired me to finally sit down and try to create my own.

The First Stab

Here’s my initial attempt:

OS X Eclipse Icon 256x256 Black

Mac OS X Eclipse Logo 256x256 on Black

Continue reading

Posted in Uncategorized | Leave a comment

RobotLegs AS3: System/Context Event Flow

RobotLegs AS3 is a Dependency Injection Driven MVCS Framework for Flash and Flex inspired by PureMVC.

RobotLegs AS3 Event Flow

Actors may be dependent on actors below them in the diagram, but should not be dependent on anything above them.

Commands, Services and Proxies may dispatch system events, but should never listen for them.

Mediators may both dispatch and listen for system events. Continue reading

Posted in Uncategorized | Leave a comment

Constructor Injection vs Setter Injection

Constructor injection is theoretically superior:

Constructor Injection vs Setter Injection
Constructor vs Setter Injection – Constructor is Better
Setter injection versus constructor injection and the use of required

Before I built RobotLegs I was sold on constructor injection. My prototype, however, used SmartyPants-IOC which lacked constructor injection, so I bit my lip and used setter injection. In practice I found that often, especially with framework actors, it was incredibly convenient. Continue reading

Posted in Uncategorized | Leave a comment

Another Architectural Framework, But Why?

robotlegssketchsmall

The State Of The Game

There are some great Flash and Flex application frameworks out there right now. Mate, Swiz and PureMVC (update: and Parsley!) stand out. The authors of these frameworks realized that the Flash Platform is different enough to the JVM to warrant a fresh approach to application design.

Continue reading

Posted in Uncategorized | Leave a comment

RobotLegs AS3 v0.2: ReversiblePants

RobotLegs AS3 is a Dependency Injection Driven MVCS Framework for Flash and Flex inspired by PureMVC.

RobotLegs AS3 v0.2 (codename ReversiblePants) is up on GitHub:

Now with DI/IOC and Reflection adapters instead of direct dependencies on the SmartyPants-IOC framework. By providing your own adapters you can run RobotLegs off a DI/IOC/Reflection framework of your choosing. Continue reading

Posted in Uncategorized | Leave a comment

RobotLegs AS3: A DI Driven MVCS Framework for Flash & Flex – Inspired by PureMVC

RobotLegs AS3Want a framework like PureMVC but without Singletons, Service Locators, or casting? Perhaps one with Dependency Injection and Automatic Mediator Registration?

Well, you might enjoy RobotLegs AS3: yet another lightweight micro-architecture for Rich Internet Applications.

Continue reading

Posted in Uncategorized | Leave a comment

AS3 Dependency Injection Framework SmartyPantsIOC – Released!

Great news: SmartyPantsIOC, a Dependency Injection framework for Flash and Flex has been released. Check it out here:

http://code.google.com/p/smartypants-ioc/

SmartyPantsIOC

I guess that means that it’s time for me to release RobotLegs – an MVCS micro-architecture for Rich Internet Applications inspired by PureMVC, Mate and Swiz! But first, I have to write a little demo application for it.. coming soon!

Posted in Uncategorized | Leave a comment

Execute An AS3 Function After Exactly One Frame – DelayedFunctionQueue

I asked this question on Stack Overflow:

What’s the best way to execute a function after exactly one frame?

Based on the feedback I wrote a little class to make it super easy to do. You add function references to a queue, and those functions get called (in the order they were added) on the next Flash Player Frame.

Herewith, the DelayedFunctionQueue.as

Continue reading

Posted in Uncategorized | Leave a comment

Easiest way to filter Eclipse or FlexBuilder console output (trace statements)

UPDATE: This looks like a good fit Grep Console

I’m asking this in relation to Flex Builder, but it might apply to Eclipse in general.

Trace statements in Flex Builder get sent to an Eclipse Output Console. What is the easiest way to filter this text on the Eclipse side?

Specifically, I’d like to be able to filter (ignore) lines by patterns.

I came across Logback, but it seems like overkill for this scenario. Is there no way to script something like this Eclipse itself? Continue reading

Posted in Uncategorized | Leave a comment