Difference between revisions of "3D Space Example.as"
From Organic Design wiki
(Test new include) |
(Instantiate a new 3D space) |
||
| Line 1: | Line 1: | ||
#include "Space.as" | #include "Space.as" | ||
| + | |||
| + | // Instantiate a new 3D-space | ||
| + | createEmptyMovieClip( 's', 0 ); | ||
| + | initialiseSpace( s ); | ||
| + | s._x = width/2; | ||
| + | s._y = height/2; | ||
// Create a ball | // Create a ball | ||
| − | attachMovie( 'ball', 'ball', | + | attachMovie( 'ball', 'ball', 1 ); |
col = new Color( ball ); | col = new Color( ball ); | ||
col.setTransform( { ra:0x40, ga:0x40, ba:0x80 } ); | col.setTransform( { ra:0x40, ga:0x40, ba:0x80 } ); | ||
Revision as of 10:39, 19 March 2006
- include "Space.as"
// Instantiate a new 3D-space createEmptyMovieClip( 's', 0 ); initialiseSpace( s ); s._x = width/2; s._y = height/2;
// Create a ball attachMovie( 'ball', 'ball', 1 ); col = new Color( ball ); col.setTransform( { ra:0x40, ga:0x40, ba:0x80 } );



