SeniorCreative Logo
Contact   |   ABN 76 112 803 072
Folio currently contains 131 items

Recent Work Top Ten Views This Month Contact us
You are browsing the Code category...

Every now and then I have a nice little piece of code I've written for a SeniorCreative project and I will do my best to post it here for you to use when I get a chance. Mainly these things rely on you having the greensock tweening classes present in your flash projects. Hope these snippets can help you out in some way...

Sort by...

Click to view code Language Level Summary Views
AS3 resizeable dynamic scroll bar
Actionscript 3.0 *** 15th Dec, 2010

Super lightweight ScrollBar class! This is all rendered with drawingAPI methods and is resizable vertically....
AS3 Random Fly Insect Behaviour
Actionscript 3.0 ** 14th Dec, 2010

Attach a movieclip in your Flash IDE library to this script, making sure you have the greensock tweening library classes present in your application structure. It will buzz around and fly in completely random paths. Play around with the stage bounds and easing to tweak it to suit. You could also make your insect perform an action in between where it stops and flies off again....
AS3 Calculate Median Value
Actionscript 3.0 ** 14th Dec, 2010

Pass in an array of numeric values in any order and it will return you the median value which is the middle value for an odd length of values, or the mid-point between the two middle numbers for an even length of values...
AS3 Rain Particle Generator
Actionscript 3.0 *** 30th Nov, 2009

This is one of a few particle generators I have. I used this on the thatworks site and also made an earlier posting of it for forking on wonderfl. There are a fair few parameters you can tweak to get your rain looking how you want it. Make sure you have the latest versions of TweenLite available from greensock. You can make the rain start and stop periodically or just have it constantly going... see the attach method for these options....
AS3 Example Flash Banner Class
Actionscript 3.0 * 27th Nov, 2009

This a very basic class for someone new to AS3 - showing how to setup a banner. It should be set as the document class....
AS3 Recursive Object Output Trace
Actionscript 3.0 ** 26th Nov, 2009

This was originally written way back in AS2, and easily reversioned with better data typing for AS3. It spits out a legible trace of the contents of a multidimensional object variable. Handy for checking loaded and parsed XML....
AS3 Timecode Conversion Class
Actionscript 3.0 ** 26th Nov, 2009

This is a Flash Actionscript 3 TimeCode Converter Class. The idea is you can pass in a number of elapsed frames, with an optional time offset and the Timecode is generated from that. Also it works in reverse - will convert Timecode to frames. It currently is set by default for a PAL framerate (25FPS) but the class can easily be converted to work at different frame rates. This is a very useful tool if working with video and broadcast applications. Enjoy!...
Some of the best resources and tools out there...
Greensock's Tweening Classes
Kirupa Forums
Develop AIR apps with Flash
PHP Mailer
TinyMCE wysiwyg Text-Editor
Malevole - Alternative Lorem Ipsum
WonderFL - build flash online
Panic - CODA
Magic Toolbox - Magic Zoom
Versions App
CSS3 Font Squirrel
jQuery Cycle

© Copyright 2011 SeniorCreative