Difference between revisions of "Server-monitor.as"

From Organic Design wiki
m
(simplify (tested and works in flash))
Line 1: Line 1:
 
// blank movie clip
 
// blank movie clip
 
createEmptyMovieClip( 'graph', 100 );
 
createEmptyMovieClip( 'graph', 100 );
with (graph) {
+
graph.lineStyle( 2, 0x00ff00, 100 );
_x = 0;
 
_y = 0;
 
_height = _root.width;
 
_width = _root.height;
 
lineStyle( 2, 0x00ff00, 100 );
 
}
 
  
 
for ( i = 0; i < 800; i += 3 ) {
 
for ( i = 0; i < 800; i += 3 ) {
 
graph.moveTo( i, 0 );
 
graph.moveTo( i, 0 );
graph.lineTo( i, Math.random() * _root.height );  
+
graph.lineTo( i, Math.random() * height );  
 
}
 
}
//graph.nextFrame();
 
  
 
// Textbox
 
// Textbox

Revision as of 04:26, 24 March 2006

// blank movie clip createEmptyMovieClip( 'graph', 100 ); graph.lineStyle( 2, 0x00ff00, 100 );

for ( i = 0; i < 800; i += 3 ) { graph.moveTo( i, 0 ); graph.lineTo( i, 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() { }