terrypaton.com » Library
Here's small little self-contained snippets of code and effects. I have collected these together mostly for my own benefit, but hopefully you can find some use for them too! Most have an example, plus the source code to download.

I use sugarsync as my current backup solution, it looks after all my data.

Sugarsync


Yay! I bought flash code - TweenMax and Tweenlite ar fantastic. Buy 'em, support the coder.



I also use the website toodledo.com for my todo lists and generally organising my life - Toodledo

AS3 Waving New Zealand Flag

Accessing static var with just class name

Difficulty Graph

AS3 Camera

AS3 Landscape generator

AS3 Right Click menu

AS3 Drop down menu

AS3 Threshold transition effect

AS3 Draw Landscape

AS3 Mute sounds globally

AS3 Rough check for valid email

AS3 Get instance from string

Find all of a class type

AS3 Age gate

AS3 Star Field

Zerofractal Studio : Facebook bridge

AS3 Pie Chart

AS3 Draw curve between points

AS3 Flash version detection

AS3 Offset rotation

AS3 Distribute scaled Movieclips evenly

Adobe Releases AS3 Facebook API

AS3 Water and Light Effect

Colour Matrix setting

AS3 Bubbles

AS3 pixelate bitmapData

AS3 swf Url test

Another great flash debugger

Shared Object Manager

Keyboard Focus

Another great AS3 Debugging tool

AS3 Draw curved bar

AS3 Load a swf into another

Great flash debugger Arthropod

Access flashvars from a loaded swf

AS2 Preloader

Javascript popup from flash

AS3 Playing loop manager template

AS3 Base code template for a settings file

AS3 Welding

Date monitor

AS3 Simple drop down menu

AS2 Random grid

AS2 Textbox focus

AS3 Find and Replace static class

AS2 Missle Trajectory

AS2 Spiral

AS2 Scroll items

AS2 Highlight Text

AS2 Rotate to mouse

AS2 Right Click

AS2 loading spinner

AS2 Filter array

AS2 Isometric

AS2 Distance between points

AS2 Decreasing vertical motion

AS2 Easy Menu

AS2 Billiard Ball Physics

Simple Music Player

AS2 Bouncing Balls

AS2 Sine wave pulse

AS2 Butterfly

AS2 Wiring with docks

AS2 Sliders

AS2 Speaker animation

AS2 Popup sized window

AS3 Dial manager

AS3 Left & Right Sound Channels

AS3 Volume Slider

AS3 Simple slider

AS3 Basic Scroll Bars

AS3 Sound Spectrum

AS2 Noise

AS3 Send to a friend (template)

AS3 Fill screen

AS3 Chimney Smoke

AS3 Highscore XML Load and Save

AS2 fps counter

AS2 Oval

AS2 Curved Slider

AS2 Fountain

Calculate X and Y velocity

AS2 Fireworks

AS2 Bouncing Ball

AS2 Bobblehead

AS2 Shake

AS3 Find Transparent Pixels

AS2 Sound Manager

AS2 Wobbly Text

AS2 Vertical Avoid Object

AS3 Pixel Hit collision v2

AS2 Stretchy Box

AS2 Sine Wave Drawing

AS2 Snow

AS2 Lightning

AS3 Pixel Hit collision v1

AS2 Bitmap Grid

AS2 Bitmap Electro Effect

AS2 Segment Intersection

AS3 Bubble

AS2 particle repulsor

AS2 random Points in an area

AS2 Parting Leaves

AS2 Reflection

AS2 Shuffle Grid

AS2 Worm Maker

AS3 Rotating Peices

AS3 CSS text

AS2 Perlin Noise

AS2 Swarm

AS2 Octagant Testing

AS3 Node 4

AS3 Node3

AS3 Node2

AS3 Node1

AS2 Multi Choice Puzzle

AS2 Map Scroller

AS2 Line intersection

AS2 Follow Mouse Rotation

AS2 Flame particles

AS2 Flying Bug

AS2 Analog Clock

AS2 Swearword Filter

AS2 Country Combobox

AS2 Atom

AS2 Accordian Menu

AS2 Flash Stylesheets – css

AS2 Countdown Clock

AS3 Video Player

AS2 Draw Bezier Graph

AS2 Draw Pie Chart

AS2 Video Player

AS3 Context Menu

AS2 Constrain To Circle

AS3 Preloader

AS2 3D Box

AS2 Send to a friend

AS2 Displacement map

AS2 Steam

AS3 Seek Behaviour

Viewable Range

AS3 Bitmap Displacement

AS3 Lightning