Archive for the ‘ Example Files ’ Category

ScrollBox

The ScrollBox class creates a container with horizontal and vertical scrollbars. The ScrollBox can contain any DisplayObject and creates it’s own mask. Create an instance of ScrollBox by passing a DisplayObject to scroll and the width and height of the visible area.

var scroll_box = new ScrollBox( displayObject, 300, 400 );

http://webdevils.googlecode.com/files/ScrollBox.zip

http://webdevils.googlecode.com/files/com.zip

ProgressBar Examples

Just posted a set of classes that create various different types of progress bars. These classes will work with any class that dispatches the following events:

  • Event.OPEN
  • Event.COMPLETE
  • ProgressEvent.PROGRESS

This includes the Load_Content class. Download the Example files here.

You’ll need to download the latest version of the class library. All of the progress bars are packaged in com.webdevils.display.progressbars. Get the class library here.

ImageStreak Class for AS3

Here’s a new version of the ImageStreak Class written for AS3.

http://webdevils.googlecode.com/files/ImageStreak.zip

This class loads an image file. Creates a new Bitmap and BitmapData objects. Then it procedes to draw the image one pixel column at a time drawing the current pixel across the image. After it’s finished with the first column it moves on to the next. Until the entire image is drawn.

SoundObject

Here’s a sound utility class to make playing sound in Flash a little easier. The example files show some basic features and usage of the class.

http://code.google.com/p/webdevils/downloads/list

The SoundObject Class is basically a wrapper for the Sound and SoundChannel classes. These can be a little tricky or confusing to work with in their raw forms. The SoundObject Class strives to provide all of the expected functionality in an intuitive package.

Usage is simple, make an instance of the Class pass along the URL to an mp3 file. Call the play method to play() the sound, stop() the sound or pause() to pause the sound. Much simpler than using Sound and SoundChannel.

This has a few other methods and could use a few more. This could definitely see an update in the near future.

Sample Project with Gallery

Here is a sample project that makes use of the Load_Content, Button_Group and ImageLoader classes.

sample_project_with_gallery

I posted some videos describing the process here:http://vimeo.com/user312541/videos

I’m looking for a better service. One that doesn’t resize the images. I would like to keep them at 800×600. If anyone has any suggestions please post a commont.