Difference between revisions of "Logo.as"
From Organic Design wiki
(Finally an instantiating symbol! now make it do something) |
m |
||
| Line 17: | Line 17: | ||
v++; | v++; | ||
ball._y += v; | ball._y += v; | ||
| − | if ( ball._y > 200 ) v = -v; | + | if ( ball._y > 200 ) { v = -v; ball._y = 200; } |
} | } | ||
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; ball._y = 200; } }



