ActionScript 2 Accordion Menu

This is an ActionScript 2 version of the ActionScript 3 Accordion Menu.

This version is far far less feature complete than the ActionScript 3 version. This version was a “proof” of concept if you like of how I would approach making an Accordion Menu, which I then used as conceptual direction when making the ActionScript 3 version.

Nevertheless, it is an XML Accordion, but does not support function calls from the XML file. It is also not class based, and instead relies on two fairly simple sections of timeline actionScript to generate its functionality. The two .fla files have good comments and directions on what to edit to make changes to the ActionScript.

If there is demand, I can finish this menu to the level of the ActionScript 3 version.

View Example
Here is an example of the menu; http://www.noponies.com/dev/as2_accordion/

Source Files
Here are the source files; ActionScript 2 Accordion Menu Source

Dependencies
The menu uses Tweener. Its an old file, that I have not update to tweenLite.

Simple ActionScript 2 XML Gallery

Sample Flash file for a very basic bare bones XML gallery with a scrolling thumbnails track, and simple load progress handling. This example is really meant as a basis to build something more elegant and interesting on. In that sense, it provides a skeleton for a site, and it is up to you, as a user of the file to skin it.

This file started life as a comparison to an ActionScript 3 implementation of the same idea. The ActionScript 3 version is more elegant and is slightly more flexible.

Gallery Features;

  • Horizontal or Vertical Scrolling Thumbs track
  • External XML Images
  • Load Progress Handling
  • Ability to load in different XML files

The source file contains two files, one file has a horizontal image scrolling track, while the other has a vertical images scrolling track.

View Example
Example can be viewed here;?Ǭ† http://www.noponies.com/dev/as2_simple_gallery/ (Note, no progress loading implemented)

Source Files
Here are the source files; ActionScript 2 Simple Gallery Files

Dependencies
File uses TweenLite, for image fading in and out.
Flash 8 or Flash CS3

ActionScript 2 Sliding Images Gallery

This file is a demo of a sliding images gallery, as used on my work site, http://www.thereformation.co.nz.

Basically images are loaded sequentially from an XML file into a movieClip, which is dynamically masked and then tweened. The gallery has support for text descriptions and also creates a dynamic image numbers navigation system which updates itself based off how many images you happen to load in. All text is CSS styled.

Contained in the .zip file are a Flash CS3 and Flash 8 source file, XML files, sample images, the tweenFilterLite class and the font used in the project.

Updates
09 June, 2008. File now supports multiple XML files

View Example
View an example of the project here; http://noponies.com/dev/slideimages/ (no preloader, 36k file size)

Source Files
Grab source files here; Sliding Images Gallery Source

Dependencies
TweenFilterLite http://www.tweenlite.com
Flash CS3 or Flash 8

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 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

ActionScript 2 Cross Fading XML Slide Show

A class based cross fading slideshow for ActionScript 2. Class file now supports captions which can be set to display persistently or only via a rollOver event. Captions use an embedded font, (contained in zip archive), however you are free to change this font or use device fonts. Look in the class variable declarations for what variables you can set. You can now (as of v 1.4) use multiple instances of the class in your swf.

SlideShow Features
By Editing the XML file, you can;

    Specify cross fade time.
    Specify image duration.
    Specify image sequence order.
    Specify Captions
    Specify Persistent Captions

The class file takes one parameter in its constructor, which where you want the slideshow to appear.
By editing the class variables you can;

    Specify Font
    Specify Font Colour
    Specify Font Size
    Specify the use of embedded fonts
    Specify Text background colour and alpha
Example

You can preview the files here;?Ǭ†http://www.noponies.com/dev/simplecross

Source Files

Get the files here; Demo Source Files

Old Non Captions based Files here; Simple Cross Fading Class Source Files

Dependencies

Class uses the excellent TweenLite class from greensock, which you can obtain from here;?Ǭ†http://blog.greensock.com/tweenliteas2?Ǭ†?Ǭ†(class file is included in .zip download)

Updates

23 Feb, 2008: Updated class with new methods, one ensures no duplicate slides are shown one after the other when using the random mode. The other is a public method that you can call when deleting one slideshow and replace it with another using the same generic holder var. This method kills the currently running interval (well it should). Class now takes another parameter in the constructor, which is the path to the XML file you want to use. This lets you use multiple instances of the class in your swf.

Next Page »