Scribbles III
Author: Joe Maddalone
The Flash
The Script
function DrawBox(sName,fc,bc,w,h,x,y,dpth,opc,speed){ ref = _root.createEmptyMovieClip(sName,dpth); ref.lineStyle(0,0xFFFFFF,100); ref.moveTo(x,y); ref.lineStyle(0,bc,opc); ref.beginFill(fc,opc); ref.lineTo(x+w,y); ref.lineTo(x+w,y+h); ref.lineTo(x,y+h); ref.lineTo(x,y); ref.endfill(); ref.onEnterFrame = function(){ this._X -= _root.randomX; this._X *= speed; this._X += _root.randomX; this._Y -= _root.randomY; this._Y *= speed; this._Y += _root.randomY; if(xxx>24){setStage()} }; } function setStage(){ xxx=1; randomX = random(stage.width); randomY = random(stage.height); } onLoad(){ DrawBox("box",0x666666,0x000000,5,5,0,0,25,50,0.9) ; } onEnterFrame(){ xxx++; if(xxx>48){setStage()} _root.lineStyle(0,0x333333,25); _root.lineTo(box._X+2.5,box._Y+2.5); }
The Download
Download swish file
If you enjoyed this post
Bookmark it at del.icio.us
Comments
Leave a Comment
Name:
URL:
Comments:
Posts
Latest
Advice (5)
API (2)
ASP.NET (8)
Blogging (2)
Browsers (5)
Classic ASP (1)
Design (1)
Ecommerce (3)
GDI+ (7)
Handy Stuff (4)
IIS (1)
Misc (7)
Money (8)
Opinion (6)
Side Projects (1)
Swish (12)
VBS (3)
Stores
Books
Software
Video Games
Plasma TVs
LCD TVs
DVD Players
Tivo & DVR
HDTVs
MP3 Players
Camcorders
Cameras
Cell Phones
Desktops
Laptops
USB Flash Drives
Hard Drives
LATEST POSTS
Career Developers are Shitbags
they are.
Consolas Makes Me Geek-ier
MS Consolas Font Abuse
Things I Read Today and You Should Too
Whilst searching for solutions I happened upon...
Knowing What Your Client DOES NOT want
it's not manipulation, its project management.
Textpad Extreme
I teach Textpad to play well with others.
ADS
MOST POPULAR
Multiple IEs in Windows
Firefox Vs. The World
Who Is Xperya?
ActionScript Form Fields
Quick Watermark
IE 7 beta 2 standalone
IP Address Tool
Chicago Web Design
Free Text Messaging