Voting

Category

real language

Bookmarking

Del.icio.us Digg Diigo DZone Earthlink Google Kick.ie
Windows Live LookLater Ma.gnolia Reddit Rojo StumbleUpon Technorati

Language actionscript

(update (tippfehler!!!)

Date:01/10/06
Author:atom3000
URL:n/a
Comments:5
Info:n/a
Score: (3.01 in 96 votes)
for(_root.i=0;_root.i<99;_root.i++) {
createEmptyMovieClip( "br"+_root.i, _root.i );
tellTarget("br"+_root.i) {
lineStyle( 1, 0, 50);
moveTo(0, 0);
lineTo(0,-10);
lineTo(-5,-15);
lineTo(-5,-20);
lineTo(-10,-20);
lineTo(-10,-15);
lineTo(-15,-10);
lineTo(-15,0);
lineTo(0,0);
createTextField("t",1,-15,0,90,30);
t.text=_root.i+1;
_x=50+_root.i%20*25;
_y=50+(Math.floor(_root.i/20))*50;
}
}
x=99;
setInterval( 
function(){
x--;
if(x+1>0)tellTarget("br"+x)_alpha=0;
}
, 
100
);

Download Source | Write Comment

Alternative Versions

VersionAuthorDateCommentsRate
object-oriented versionUnknown04/20/050
standard versionDavid Fichtmueller04/20/053

Comments

>>  Matt Laurence said on 05/01/06 16:00:51

Matt Laurence Now that's thinking outside the box... I like it!

>>  johnb said on 08/23/06 11:38:34

johnb that's cool. for all of you who are not familiar with actionscript programming: the code creates a flash movie that draws 99 vector images of a bottle and makes them disappear one after the other ;-)

>>  Ptus said on 06/24/07 02:26:38

Ptus What an awful code !!
for(_root.i.... -_-
tellTarget -_-
should be corrected

>>  jonathan said on 10/14/07 23:07:35

jonathan indent...?

>>  Robert said on 09/24/09 19:06:41

Robert Is there a place on the web where this can be seen or run? I don't have my own web server/actionscript.

Download Source | Write Comment

Add Comment

Please provide a value for the fields Name, Comment and Security Code.
This is a gravatar-friendly website.
E-mail addresses will never be shown.
Enter your e-mail address to use your gravatar.

Please don't post large portions of code here! Use the form to submit new examples or updates instead!

Name:

eMail:

URL:

Security Code:
  
Comment: