Archive for the 'AS3' Category

AS3: MouseIdleMonitor

View Example
View Documentation
Download Class & Example Files

I recently had the need to track if the user has stopped using their mouse (if the mouse was idle) in an application I was building. It actually turned out to be a lot easier than I had imagined with the use of a timer and the built in mouse events in Flash. Read more »

Tags: ,

AS3: QueryString

View Documentation
Download Class

I’ve posted before on retrieving FlashVars and how to do it in AS3. FlashVars is the suggested way of grabbing in variables from outside of Flash, but if it isn’t an option and you are still using old school query strings, this class will help you in grabbing variables out of the query string. Read more »

Tags: ,

AS3: Papervision3D FreeCamera Movement

View Example
Get Papervision3D [Tutorial]
Get TweenMax
Download Source

One of the things that I was curious about when using Papervision3D was how the camera moves around and tracks other objects. Originally I set up a Camera3D object and moved it around to look at other objects but that wasn’t playing well with the way I was tweening the camera around to look at certain objects. I switched over to the FreeCamera3D and this was the result. Read more »

Tags: , ,

AS3: DistortionTweener Done Easier In Papervision3D

View Example
Get Papervision3D [Tutorial]
Get TweenMax
Download Source

Well, the first thing I have done in Papervision3D is a replica of what I essentially did with the DistortionTweener (or actually the reason I made the DistortionTweener). It is much easier to do and takes a lot less to do (the original DistortionTweener, with research, took me about a week to do while this took me about an hour). Keep in mind the code is probably not super optimized as this is THE first thing I’ve done with PV3D. Read more »

Tags: , ,

Papervision3D FDT3 Template

After writing about Eclipse/FDT3/Papervision3D and my heavy usage of templates to speed up my workflow, the natural thing to do was to create a Papervision3D template to use in conjunction with FDT3. You can grab the template from the Downloads page at any time (if I update it in the future, the newest version will be there with a note on when it was updated) or by clicking here. Read more »

Tags: , ,

AS3: Collection & Iterator

View Collection Documentation
View Iterator Documentation
Download Class & Example Files

Anyone who has worked with me in the past probably knows my distaste for Cairngorm and how I think it overcomplicates things. One really nice feature of it, however, is value objects (now known as data transfer objects, I believe) and collections. Value objects allow you to store data in a strongly typed class for later retrieval and a collection is just basically a fancier word for a strongly typed array that holds those value objects. Read more »

Tags: , , ,

SharedObjectManager v1.1 Updates

Reader Stéphane e-mailed me last week with a problem he was having using the SharedObject in Flash. Basically, Stéphane wanted to save some data in one SWF file to a SharedObject and then retrieve that data in another SWF file. I had done this before many times but quickly realized that I had only done this with the same SWF file later loading that data back in. I did a little thinking about it and I quickly realized the error of my ways. Read more »

Tags: , , ,

Getting Started With Scripted Tweening

Download Example Files

As someone who is a beginner starting out with developing in Flash, it’s not always easy to figure out how to tween things through code and what products to use. There are more than enough tweening engines out there to make your head spin and some are more well known than others. Here I hope to shed a bit of light on what tweening engines can do what and are best used in what situation. Read more »

Tags: , , , ,

AS3: StageManager

View Example
View Documentation
Download Class & Example Files

The StageManager aligns items according to their selected alignment mode. You have the ability to resize your items with “easing” or “instant” modes as well. It also dispatches an event, ON_RESIZE, that allows for further manipulation of items to the stage sizing. Read more »

Tags: , ,

AS3: Image Slider

View Example 1
View Example 2
Download Source

UPDATE 9:52 PM CST: I just fixed a small issue so if you downloaded the source please re-download it. Thanks.

The image slider is a small project I made for a friend of mine. It works in a similar fashion to the iTunes cover flow except that it does not do a trapezoidal distortion on the images. Read more »

Tags: , , , ,

Next Page »