Difference between revisions of "Server-monitor.as"
From Organic Design wiki
(add socket include) |
(reorder) |
||
Line 1: | Line 1: | ||
#include "debug.as" | #include "debug.as" | ||
− | |||
− | |||
echo( 'Begin: Hello world!', 'ff0000' ); | echo( 'Begin: Hello world!', 'ff0000' ); | ||
− | + | #include "peer-socket.as" | |
− | socket | + | #include "bar-graph.as" |
− | |||
//createSymbol( this, 'barGraph', 'myGraph', 0 ); | //createSymbol( this, 'barGraph', 'myGraph', 0 ); | ||
Line 14: | Line 11: | ||
if ( socket.connect( 'organicdesign.co.nz', 1729 ) ) echo( 'Connecting...', '00ff00' ); | if ( socket.connect( 'organicdesign.co.nz', 1729 ) ) echo( 'Connecting...', '00ff00' ); | ||
else echo( 'Could not initialise connection!', 'ff0000' ); | else echo( 'Could not initialise connection!', 'ff0000' ); | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Revision as of 05:40, 27 March 2006
- include "debug.as"
echo( 'Begin: Hello world!', 'ff0000' );
- include "peer-socket.as"
- include "bar-graph.as"
//createSymbol( this, 'barGraph', 'myGraph', 0 );
// Connect to our host to establish stream if ( socket.connect( 'organicdesign.co.nz', 1729 ) ) echo( 'Connecting...', '00ff00' ); else echo( 'Could not initialise connection!', 'ff0000' );
//function reduce() {
// myGraph.rotate( Math.sin( ++x/10 ) * height / 3 + height / 2 );
// }