Difference between revisions of "Logo.as"

From Organic Design wiki
m
(oops, wrong comment symbol again!)
Line 5: Line 5:
 
bg_b = ( background & 0x0000ff );
 
bg_b = ( background & 0x0000ff );
 
bg_r = 255; bg_g = bg_b = 0;
 
bg_r = 255; bg_g = bg_b = 0;
fw = 20; # width of fades
+
fw = 20; // width of fades
 
id0 = 1;
 
id0 = 1;
 
changes = [];
 
changes = [];

Revision as of 22:52, 16 March 2006

textcol = '#' + textcol; background = parseInt( background, 16 ); bg_r = ( background & 0xff0000 ) >> 16; bg_g = ( background & 0x00ff00 ) >> 8; bg_b = ( background & 0x0000ff ); bg_r = 255; bg_g = bg_b = 0; fw = 20; // width of fades id0 = 1; changes = []; change = false; nchanges = 10; offset = -200;

// Set up async connection with server server = new LoadVars(); server.title = 'RC-Summary'; // wiki page to request server.onLoad = function(success) { if (success) { for ( i = 0; i < nchanges; i++ ) { row = this['item'+i].split(','); id = row.shift(); if ( ( i == 0 ) && ( id != id0 ) ) { if ( id0 ) offset = -20; id0 = id; } time = row.shift(); user = row.shift(); user = '<a href="/User:'+user+'">'+user+'</a>'; title = row.shift(); title = '<a href="/'+title+'">'+title+'</a>'; comment = row.join(','); if (comment != ) title = comment; changes[i] = ''+user+'   '; changes[i] += title+' 
'; } rc.htmlText = changes.join(); } };

// Textbox createTextField( 'rc', 1, 0, 0, 190, 200 ); with (rc) { selectable = false; _quality = 'BEST'; border = false; multiline = true; wordWrap = false; html = true; }

// Fades attachMovie( 'linear', 'top', 2 ); col = new Color( top ); col.setTransform( { rb:bg_r, gb:bg_g, bb:bg_b } ); top._width = fw; top._height = width; top._x = width / 2; top._y = fw / 2; top._rotation = 90;


// Logo attachMovie( 'xmlwiki', 'xmlwiki', 5 );

// Per-frame function function reduce() {

// Scrolling if ( offset < 0 ) offset++; rc._y = offset;

// Make request on some regular cycle which seems about right if ( ++_root.ctr%400 == 1 ) { server.SWF = id0; server.sendAndLoad( '/wiki/index.php', server, 'GET' ); }

}