ActionScript 2 ToolTip Class

Simple ToolTip Class based off Lee Brimelow’s?Ǭ†http://theflashblog.com/?p=16?Ǭ†old ToolTip class.

I extended this as an exercise when helping out a poster on the?Ǭ†Kirupa.com?Ǭ†forums. I’ve added in support for a dropShadow beneath the tooltip. Support for different amounts of text ( the toolTip is still single lined, but it expands depending on text amount). And support for detecting the edge of the stage, so that the toolTip will flip horizontally if it would end up being displayed off the right hand edge of the stage, thus becoming unusable.

View Example
Here is an example;?Ǭ†http://www.noponies.com/dev/tooltip/
Source Files
Here are the source files;?Ǭ†ToolTip Source files
Dependencies
Flash 8 or CS3

ActionScript 3 Print all Items on Stage

Simple class for printing all items on the stage. Along with another class for printing from a contextual menu. Something to note, is that the Flash player wont allow you to add your own “Print” menu item, it seems that is a reserved keyword. Which makes sense.

This class is probably a dirty hack.

This has only been tested when being instantiated from either a document class, maintimeline or via a custom menu class.

Basically what this does is create a temp empty sprite, loop through all instances on the stageand add them to this temp sprite, then print this temp sprite as the print job class accepts only a single sprite as an argument. (unless I’m missing something?). When the print job has been sent the objects are removed from the temp sprite and added back to the stage. The temp sprite is then deleted. There is a degree of error handling in the print functions for trapping cancelled jobs etc. No support for page sizes, or other elements of the printjob class are provided. They can be added, but this was a quick dirty hack to see if printing the stage was relatively simple.

View Example

Here is an example;?Ǭ†http://www.noponies.com/dev/printstage/?Ǭ†

Source Files

Here are the source files; ?Ǭ†Print Stage Source Files?Ǭ†?Ǭ†Archive contains .fla, document class, print class and context menu class.

ActionScript 2 Full Browser Flash Sites – Video Tutorials

Two basic video tutorials and?Ǭ†associated?Ǭ†support files that take you through the steps for creating full browser Flash sites.

Tutorial One – Publish Settings (7 mins)

Publish Settings – Step by step guide for setting the correct publishing settings in Flash 8 for full web browser Flash sites.

Source Files – Contain Video Tuts and Fla’s

Here are the source files; ?Ǭ†01_publishsettings.zip

Tutorial Two – Responding to Stage Size (24 mins)

Step by step demonstration for creating a stage listener that will move content around based on the width and height of the stage size.

Source Files

Here are the source files; ?Ǭ†02_respondscale.zip

Dependencies

Quicktime 7+ or h264 capable movie viewer
Flash 8
Watch out for the bad porn sound in the tuts, had the microphone up a little high…

ActionScript 2 Random Compositions Tutorial

This 26 page pdf based tutorial explores the various mechanisms for creating random compositions in Flash 8, using ActionScript 2. It serves as a basic primer for creating work in a similar vein to Joshua Davis’s generative Flash work.

Topics covered include;
Random Number generation
Animation Strategies – enterframe, timer, loops
Key based interactivity
AttachMovie and DuplicateMovie
Dynamic ActionScript functions
Random Positioning, Colouring, Depth Shuffling of movieClips
Deleting MovieClips
Classes

Example
Here is a simple example of the kind of thing you create in this tutorial; Random Composition

Source Files
Here are the source files; Randomisation in Flash 8 Source Files

Dependencies
Flash 8 or Flash CS3
PDF Reader

« Previous Page