Difference between revisions of "Logo.as"

From Organic Design wiki
m
(Back to testing PNG)
Line 1: Line 1:
createTextField( 'rc', 1, 0, 0, 50, 50 );
+
attachMovie( 'xmlwiki', 'test', 1 );
with (rc) {
+
attachMovie( 'ball', 'ball', 2 );
    selectable = false;
 
    _quality = 'BEST';
 
    border = false;
 
    multiline = true;
 
    wordWrap = false;
 
    text = 'testing';
 
    }
 
 
 
attachMovie( 'xmlwiki', 'test', 3 );
 
attachMovie( 'ball', 'ball', 4 );
 
 
ball._x = ball._y = 50;
 
ball._x = ball._y = 50;
 
ball._xscale = ball._yscale = 50;
 
ball._xscale = ball._yscale = 50;
 
_root.vx = 2.0;
 
_root.vy = 0.0;
 
_root.x = 0.0;
 
_root.y = 0.0;
 
_root.my = 12.0;
 
_root.g = 0.5;
 
  
 
function reduce() {
 
function reduce() {
_root.x += _root.vx;
+
// dynamics
_root.y += _root.vy;
 
_root.vy += _root.g;
 
if ( _root.vy > _root.my ) _root.vy = _root.my;
 
if ( _root.x < 0 ) { _root.x = 0; _root.vx = 2.0; }
 
if ( _root.x > 200 ) { _root.x = 200.0; _root.vx = -2.0; }
 
if ( _root.y > 200 ) { _root.vy = -_root.my; _root.y = 200.0; }
 
ball._x = _root.x;
 
ball._y = _root.y;
 
 
}
 
}

Revision as of 08:58, 16 March 2006

attachMovie( 'xmlwiki', 'test', 1 ); attachMovie( 'ball', 'ball', 2 ); ball._x = ball._y = 50; ball._xscale = ball._yscale = 50;

function reduce() { // dynamics }