Archive for August, 2006

Flash Tenth Anniversary

Tuesday, August 8th, 2006

We asked ten experienced Flash designers from all around the world…

Nice to see they got someone representing the UK, Spain, Germany, France etc or even Europe (NOT).

Flash: Ten years, ten perspectives

EDIT
Ah yeah we have some in the developer center. Obviously we’re just shit designers ;)

Flash: Ten years, ten perspectives

10 Years of Flash

Tuesday, August 8th, 2006

Happy Birthday Flash!!!

Today Flash is officially 10 years old and to celebrate, yesterday FWA, in conjunction with Adobe, announced a community poll to establish what the most influential Flash site has been in the last 10 years.

10 Years of Flash. Make sure ya get your votes in.

AS 3.0 Cloning/Concatenating Graphics (with Proxy)

Monday, August 7th, 2006

With Rich’s prompt I’ve been alking a look at proxy and how it could remove some of the code in this class. To get it to work the class needs to be dynamic, which means not compile time errors, but you still get run time errors.

I’m not sure if i like this approach to be honest, but it does cut down on the code, by removing the need to duplicate all the Graphics drawing methods.

(more…)

AS 3.0 Cloning/Concatenating Graphics

Saturday, August 5th, 2006

After reading this post, this morning, whilst everyone was out in the sun, I decided I would set myself a little task this to enable users to clone and concatenate graphics drawn within a Graphics instance in AS 3.0.

You can still draw directly in any Graphics instance, but any drawing done directly on a graphics instance will not be cloned. If you draw directly in a Graphics instance, you can still use CloneableGraphics.concat() on the CloneableGraphics instance and it will concatenate the graphics drawn directly in the Graphics instance with any returned from the CloneableGraphics instance.

(more…)

Custom Events in AS 3.0 (don’t forget to override the clone method)

Thursday, August 3rd, 2006

In AS 3.0 you can now create your own Events that extends the Event class.
[as]package.events
{

public class CustomEvent extends Event
{

public static const CUSTOM_TYPE:String = “customType”;

public var customProp:String;

public function CustomEvent( type:String, cp:String, bubbles:Boolean, cancelable:Boolean )
{
super( type, bubbles, cancelable )

customProp = cp;
}

}

}[/as]
This can then be used like so
[as]dispatchEvent( new CustomEvent( CustomEvent.CUSTOM_TYPE, “myProp”, true ) );[/as]
This works fine until you need to re-dispatch the event, in the case that you event doesn’t bubble as its dispatched from an object that isn’t in a displayList. If you do re-dispatch the event like so…

(more…)