Posts Tagged ‘AS3’

IDisplayObject? – Getting around the lack of an interface for the DisplayObject in Flash

Sunday, March 14th, 2010

Interfaces are amazing things. When I was young and green, I didn’t understand their purpose, but after working with them for a while, I will defend their use to the end. I try to create lots of interfaces early on in my projects and I find that by keeping things flexible, it saves more time despite the extra typing, pardon the double entendre.

But this is not an article about why interfaces are so great. No, this is an article about the mysterious gap in the Flash Player API with regards to an interface for DisplayObjects. If you have a class typed as something like IView, there’s no way to enure that IView can be a parameter of display list functions like addChild().

(more…)

Copy text to clipboard in AS3

Tuesday, March 2nd, 2010

Here’s how you do it!
http://mandarin.no/as3/as3-snippet-1-copy-text-to-clipboard/

Flash player 10

Wednesday, October 8th, 2008

Its that time again. Time to get into the latest and greatest tech from one of those giant software engineering companies. This time, the tech is Adobe’s Flash player 10.

Step 1: download the Flex 4 SDK and the Flash player 10 (debug version).

Step 2: Create a fresh config file that will target Flash player 10.

Step 3: Use MXMLC to compile your Actionscript or MXML file.

Step 4: Explore AS3 with Flash 10!

I’ve only tinkered around a bit at this point. But as soon as I get a chance to build a crazy app, I’ll have a more thorough write-up. So far, I’m quite excited at the new features. Be sure to read up on the following:

new Vector class

The inverse kinematics package

The new Shader class

The all new text engine package