Difference between revisions of "Server-monitor.as"

From Organic Design wiki
(simplify (tested and works in flash))
(add dither)
Line 1: Line 1:
 
// blank movie clip
 
// blank movie clip
 
createEmptyMovieClip( 'graph', 100 );
 
createEmptyMovieClip( 'graph', 100 );
graph.lineStyle( 2, 0x00ff00, 100 );
 
  
for ( i = 0; i < 800; i += 3 ) {
+
dither = 1;
graph.moveTo( i, 0 );
+
 
graph.lineTo( i, Math.random() * height );  
+
for ( i = 0; i < 800; i += 1 ) {
 +
if (dither == 1) { graph.lineStyle( 1, 0x00ff00, 100 ); } else { graph.lineStyle( 1, 0x00aa00, 100 ); }
 +
dither = dither ^ 1;
 +
graph.moveTo( i, height );
 +
graph.lineTo( i, height * ( Math.random() * height ) );  
 
}
 
}
  
Line 20: Line 23:
 
htmlText = '<font color="#00ff00">Hello World :-)</font>';
 
htmlText = '<font color="#00ff00">Hello World :-)</font>';
 
}
 
}
 
 
 
  
  
 
function reduce() {
 
function reduce() {
 
}
 
}

Revision as of 04:32, 24 March 2006

// blank movie clip createEmptyMovieClip( 'graph', 100 );

dither = 1;

for ( i = 0; i < 800; i += 1 ) { if (dither == 1) { graph.lineStyle( 1, 0x00ff00, 100 ); } else { graph.lineStyle( 1, 0x00aa00, 100 ); } dither = dither ^ 1; graph.moveTo( i, height ); graph.lineTo( i, height * ( Math.random() * height ) ); }

// Textbox createTextField( 'rc', 1, 0, 0, width, height ); with (rc) { _alpha = 30; selectable = true; _quality = 'BEST'; border = false; multiline = true; wordWrap = true; html = true; htmlText = 'Hello World :-)'; }


function reduce() { }