Various ActionScript classes and Flash site templates that I use on a regular basis, collected them into one open source code library. Feel free to send any suggestions, questions, etc. to john@johnpolacek.com

Project Home on Github

Documentation


ContentDisplay Suite

A group of Flash site templates (“Rooms”) used to display various types of media content (video/audio/images) in a variety of ways with a library of shared components (Lightbox, Media Players, etc.).

BriefingRoom

View Demo

Flash template for creating Flash presentations or microsites that imports external swf's that have been generated from InDesign. Lightbox functionality is enabled by adding Interactive Buttons in InDesign and adding the file names of the content to be lightboxed to the button title.

MediaRoom

View Demo

Another xml-based full-screen Flash site template, with deeplinking and a liquid canvas, designed to display media content.

ReadingRoom

View Demo

An xml-based full-screen Flash site template, designed for communications such as newsletters, business proposals, case studies, white papers, etc. Extends FullScreenSite.

ViewingRoom

View Demo

An xml-based full-screen Flash site template, designed to showcase media content, such as video, images, audio and flash.

FullScreenSite

View Demo

An xml-based full-screen fixed two-column Flash site template. Includes swfaddress, lightboxing, various media components and google analytics event tracking.


Standalone Video Player

View Demo | Download

The setup I use to embed video on a web pages. Uses a Flash video player I created, and falls back to an html5 player for Apple devices.


Basic Webkit Page Template

View Page (Best viewed in Chrome or Safari) | Download

A basic html5 web page template designed for webkit devices (iPhone/iPad/Android). Includes landscape/portrait css and jQuery.


Class Library Demos

Usage examples for the various ActionScript classes in the johnpolacek lib.


Components

Components used by document classes to present ContentDisplay elements.

GridGallery

View Demo

Loads an array of thumbnails and arranges them in a grid. Clicking on a thumbnail launches content from a corresponding array in a lightbox window.

ImageGrid

View Demo

Loads and arranges images in a grid.

View Demo

Uses the ContentDisplay classes to display media content in a window on the top level while using an overlay to dim the background.


Display

Top-level display classes for various types of media.

AudioDisplay

View Demo

An MP3 player.

AutoSlideShowDisplay

View Demo

A looping animated slideshow of images

FlashDisplay

Displays flash content (.swf)

ImageDisplay

Displays images (.jpg, .gif and .png)

VideoDisplay

View Demo

A netstream flash video player


Media

Various classes dealing with different types of media.

SoundLoop

View Demo

Loads and plays sound files in a continuous loop.

SoundSpectrum

View Demo

Animated sound spectrum displayed in a rectangle container


Shapes

Classes for quickly and easily creating shapes.

RectangleShape, EllipseShape, etc.

View Demo


Text

Classes are for displaying text.

HTMLTextBlock

View Demo

Displays HTML-formatted text, with runtime font embedding & CSS styling


UI

Classes for various user interface elements (e.g., navigation, scrolling).

View Demo

Simple accordion nav menu.

Buttons and Menus

View Demo

Using ChromeContainer, BasicButton and BasicButtonMenu.

View Demo

Add a scrollbar and masking to any sprite.

Standalone Scrollbox

View Demo | Download

This scrollbox component is independent of the rest of the class library. It uses no imported classes, can be easily re-skinned and is meant to be edited in the .fla.