Difference between revisions of "Logo.as"

From Organic Design wiki
m
(Finally an instantiating symbol! now make it do something)
Line 15: Line 15:
  
 
function reduce() {
 
function reduce() {
// stuff
+
v++;
 +
ball._y += v;
 +
if ( ball._y > 200 ) v = -v;
 
}
 
}

Revision as of 07:04, 16 March 2006

createTextField( 'rc', 1, 0, 0, 50, 50 ); with (rc) {

   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._xscale = ball._yscale = 50;

function reduce() { v++; ball._y += v; if ( ball._y > 200 ) v = -v; }