Difference between revisions of "3D Space Example.as"
From Organic Design wiki
(testing recursive includes) |
(Space's reduce should be called automatically now) |
||
Line 1: | Line 1: | ||
Mouse.hide(); | Mouse.hide(); | ||
− | |||
#include "space.as" | #include "space.as" | ||
Line 6: | Line 5: | ||
// - extends createEmptyMovieClip( name, layer ) | // - extends createEmptyMovieClip( name, layer ) | ||
createEmptySpace( 'mySpace', 1 ); | createEmptySpace( 'mySpace', 1 ); | ||
− | |||
mySpace._x = width / 2; | mySpace._x = width / 2; | ||
mySpace._y = height / 2; | mySpace._y = height / 2; | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
// Test object | // Test object | ||
mySpace.create( [ 'torus', 'myTorus', 5, 200, 2000 ] ); | mySpace.create( [ 'torus', 'myTorus', 5, 200, 2000 ] ); |
Revision as of 21:59, 28 March 2006
Mouse.hide();
- include "space.as"
// Instantiate a new 3D-space // - extends createEmptyMovieClip( name, layer ) createEmptySpace( 'mySpace', 1 ); mySpace._x = width / 2; mySpace._y = height / 2;
// Test object mySpace.create( [ 'torus', 'myTorus', 5, 200, 2000 ] );