Archive for the ‘ActionScript’ Category

FileReference Mixing UI with RPC

Wednesday, March 22nd, 2006

Some of you may think I spend my life working with FileReference as I go on about it so much. I’ve gone on about how extremely easy to use it is, until today.

If you want to make up little Apps, FileReference it is perfect for the job and you wouldn’t run into this problem (in fact you’d probably think the way I would like to see it implemented would make things a lot more awkward for you), but if you were to build anything bigger seperating out your view components, model, controller and RPC etc you will run into a problem.

The FileReference object mixes user interaction (FileReference.browse() FileReference.download()) with RPC (FileReference.upload()) which really complicates things.
(more…)

Humber + RIT Interactive Design Charrette 2006

Sunday, January 22nd, 2006

I’ve just got offline from judging the 10 projects presented for the Humber + RIT Interactive Design Charrette along with Gabe Kean of Born Magazine.

The idea was that 40 students (20 from each university) would be split into teams of 4 to collaborate and create an informative interactive experience on “Lake Ontario”. Each team wrote their own brief to fit the main topic.

(more…)

AS 3.0 DisplayListTest

Tuesday, October 18th, 2005

Still mucking around with the same example, but just trying to extend it a bit.

This example now has 3 classes.

1. ‘DisplayListTest’ is the main base class. It creates instances of ‘DisplayListContainer’ and passes an integer as a paremeter to each ‘DisplayListContainer’ and then adds it to its displayList.

2. ‘DisplayListContainer’ these are created in the main class. A new TextFormat object is created, an instance of ‘DisplayListChild’ is created and a new TextField is created. The integer then used in the TextField. The Tween class is then used to contually move this object randomly around the stage.

3. ‘DisplayListChld’. An instance of this object is create once inside each ‘DisplayListContainer’. It creates a circle Shape inside itself and a GlowFilter. The object then listens to its own enterFrame event to change continually change the alpha property of the GlowFilter.

DisplayListTest

(more…)

Syntax Highlighting

Tuesday, October 18th, 2005

My posts now have ActionScript syntax highlighting amoung many others, after adding the WP-Plugin iG:Syntax Hiliter by Amit Gupta.

There are a few issues with Firefox.

1. If you select, copy and paste the text from the thread it will all a ‘#’ character to every other line, which is annoying and messy (i’ll see if i can link this to an AS file).
2. If you select the ‘Plain text’ option in Firefox, a load a whitespace is added. This is still annoying but not as bad.

There is still no support for syntax highlighting in comments but it seems Amit is working on this for the next release.

Also thanks to Chris for helping me with some probs installing it (although the install is easy, I’m just thick).

AS 3.0 Moving Circle

Tuesday, October 18th, 2005

Here my first pointless little bit of AS 3.0.

Its just an example of implementing the Tween object with a Sprite object.

AS 3.0 Moving Circle.

**EDIT – ive added another quick example based on mulitple circles.

Create a new ActionScript Project in Flex builder 2, and paste the following code. (more…)

Max

Saturday, October 15th, 2005

Can’t make it to Max like me?

MM have set up a Max category in the Macromedia XML News Aggregator so you can keep up with all the latest news.

Max Bloggers

Foundation ActionScript Animation

Thursday, October 13th, 2005

Foundation ActionScript Animation: Making Things Move!

Late yesterday i got a review copy of the first 4 chapters for this book and it looks absolutley fantastic. Honestly you really oughta look into pre-ordering this book if you deal with Flash and scripted motion, or you want to progress from timeline animation to scripted animation.

My main interest is in interaction and animation and his book looks like its gonna cover everything you would need to know and thats includes Flash 8 stuff! This is now Keith’s nineth book and it seems to me hes become a seasoned writer. As soon as i started reading this book cheered me up. He has a knack of writing serious content in a light hearted way.

The contents is massive and it doesn’t leave anyone out. I know the title says ‘Foundation’, and although this book does cover foundation stuff it goes on to cover all areas of scripted animation in depth. It starts by covering the concepts of animation and how the term animation is defined.

It then goes on to show you the various ways you can achieve animation in Flash, with quick examples you can test. This covers frame passed, loop based and event based animation.

The comes the dreaded trigonometry. There are some great examples in here and tips for using trig in Flash. Each is worked through and explained throughly with important stuff you should remember really shoved in your face. The chapter ends in showing you how to achieve various paths of animation using trigonometry.

So after you know about animation, how to achieve it, and how to define the path you want you properties to animate on what do you need to know next. Oh yeah how to render the anaimations on screen. This chapter covers the drawing API, filters, matrix’s, hexidecimal color values etc… etc…

Stuff to come in later chapters?
Velocity, boundaries user interaction, easing, collision, attraction, kinematics, 3D and a whole chapter dedicated tips and tricks.

I highly recommend you go order this book. I’d like to hear from anyway who says it isn’t invaluable!

Regular Expressions and E4X

Saturday, October 8th, 2005

With the great news about the Flash Platform moving forward again comes Regular Expressions and E4X.

Links nicked from Guy Watson but worth posting again. Go read em!

Delegate, EventDispatcher & Tween Help

Sunday, October 2nd, 2005

Looking for info on any of these in the help files?

If so you need to look in the Components Language Reference.

Here’s the relevant links to Flash 8 LiveDocs

Components Language Reference/Delegate class
Components Language Reference/EventDispatcher class
Components Language Reference/Tween class

FileReference Source

Sunday, September 25th, 2005

Better late than never!

I’ve finally got round to creating 2 seperate examples that i can provide the source for. There’s a upload example, and a download example using the FileRefence object in Flash 8.

You can download the source from the download example or from here.

You will need to set the file permissions on the ‘uploadedFiles’ folder included when uploaded to you server so that it will accept uploads.