Difference between revisions of "3D Space Example.as"
From Organic Design wiki
m |
m |
||
Line 2: | Line 2: | ||
// Instantiate a new 3D-space | // Instantiate a new 3D-space | ||
− | createEmptyMovieClip( ' | + | createEmptyMovieClip( 'test', 1 ); |
− | initialiseSpace( | + | initialiseSpace( test ); |
− | + | test._x = width/2; | |
− | + | test._y = height/2; | |
// Create a ball | // Create a ball | ||
Line 21: | Line 21: | ||
// Test object | // Test object | ||
− | + | test.create( [ 0, 0, '', 'starBurst', 10, 0.25, 0,0,1000 ] ); |
Revision as of 11:31, 19 March 2006
- include "Space.as"
// Instantiate a new 3D-space createEmptyMovieClip( 'test', 1 ); initialiseSpace( test ); test._x = width/2; test._y = height/2;
// Create a ball attachMovie( 'ball', 'ball', 2 ); col = new Color( ball ); col.setTransform( { ra:0x40, ga:0x40, ba:0x80 } );
// Per frame function reduce() { now = new Date(); time = now.getTime(); for ( var i = 0; i < allSpaces.length; i++ ) if ( allSpaces[i].active ) allSpaces[i].frame(); }
// Test object test.create( [ 0, 0, , 'starBurst', 10, 0.25, 0,0,1000 ] );