Archive

Archive for the ‘Flash’ Category

Flash Forward: Learning AS3 for designers

September 23rd, 2007

Lately a lot of designers have been asking me the what they can expect to be different in CS3 and AS3 where they are concerned. I took notes of the recent Flash Forward conference in wordpress, so I’ve decided to post this summation of Rich Shupe’s “Learning AS3 for designers” Panel.

I’m sititing in on the Flash forward panel AS3 for designers. I’m curious to see some of the new features in the Flash CS3 IDE where AS3 and designers are concerned, more specifically how designers can animate and bounce things down to AS3 for hand-off to a developer like myself.

Rich Shupe is the speaker for this panel.

General changes

Right now hes summarizing general things that have changed for designers in CS3, primarily the lack of the old onRelease and attachMovieClip/duplicateMovieClip methods.

Now he’s going over changes in scaling. _xscale and _yscale are depreciated in favor of scaleX and scaleY. Values are now 0 to 1 instead of 0 to 100.

Now he’s explaining that actionscript directly on stage objects is gone, and that this is a good thing. All stage objects in flash, if they are to have their own behavior, need to be tied to a MovieClip based class.

Now on to the document class. He’s creating and displaying a custom sprite based class for use on a library item.

Now he’s going over mandatory datatyping in AS3. Datatyping, where is a virtual machine or a compiler is concerned, is really going to work wonders for the performance of the binary applications you’re building.

Display list

He’s explaining how addChild adds items to the top of the display list stack, and thast removeChildAt(number) will remove anything at a specified depth.

Rich is also showing us how to:

Heres an awesome feature of AS3: Reparenting movie clips.
Dynamically creating shapes (although, we could do this in as2.0).

Events

Loading

Now Rich is going over the new URL Request loader in favor of the old loadMovie/MovieClipLoader or the old XML.load method.
He’s now touting a new feature where you can now stop the load process in AS3, and gain access to raw data while the load is in progress.

Sound

Rich is going over the additions to the sound API, primarily that you can now have a new sound channel for each sound object, which effectively gives you a lot more control over sounds Loading can be buffered via the SoundLoaderContext class. You can also access the global sound with the SoundMixer class. You can also compute waveform spectrums with the computeSpectrum method.

Rich had built a quick example of computeSpectrum and using a custoom visualization class to draw and is now showing a waveform analysis swf that he built which is quite impressive looking. He just swapped out the visualization class with something that makes use of the graphics API for a more complex visualization. that uses lines instead of dot sprites.

He’s closing with some books he’s authored, and were done

ian AS3.0, Flash

Dejaxx

July 25th, 2007

dejaxx.jpg

Here’s an AS3 application I’ve been working on. You wouldn’t know from reading this geeky blog, but I’m actually an EDM DJ and producer, at least when I’m not buried in code.

Here’s the idea behind it. DJ’s distribute mixes that can sometimes be a few hours long. Most audio players out there are only designed to handle individual songs of only a few minutes length. Load a DJ mix into one of these and you’re loading sometimes hours worth of music into one track. Now your listener has to jog around to different points in the mix using the scrubber to get to a track they like, and all the while they have no idea what song they’re listening to.

Enter Dejaxx. It’s designed specifically to handle DJ mixes. In the XML file you specify information about your contiguous mix file and set up cue points throughout your mix. Each cue point contains the location of the track in the mix and its information (artist name, track name, etc). Now when someone wants to listen to your mix they can move through your cue points just like on a CD. Not bad huh? What’s even cooler is that Dejaxx will also update what track is playing if the song changes while you’re listening.

See it in action here.

Just a warning, I haven’t worked out the progressive streaming yet so prepare to preload a large media file (which just so happens to be a mix of my own!). I still have lots of improvements underway so hopefully I can post a new version soon.

ian AS3.0, Flash, News

PV3D Flash CS3 Component

July 20th, 2007

The PV3D Flash CS3 Component

Every time I turn around there seems to be great things happening with Papervision 3D. John Garden just released a Papervision3D Flash CS3 Component that allows you to load in COLLADA files and assign textures all right in the Flash IDE. It looks like this is going to be a great tool for artists who want to create and test content for use in Papervision without having to touch any code.

ian AS3.0, Flash, News