Difference between revisions of "3D Space Example.as"

From Organic Design wiki
(change number of balls)
 
(28 intermediate revisions by the same user not shown)
Line 1: Line 1:
#include "Space.as"
+
{{legacy}}
 +
<as>
 +
Mouse.hide();
 +
#include "space.as"
  
 
// Instantiate a new 3D-space
 
// Instantiate a new 3D-space
createEmptyMovieClip( 'test', 1 );
+
// - extends createEmptyMovieClip( name, layer )
initialiseSpace( test );
+
createSymbol( _root, 'space', 'mySpace', 0 );
test._x = width/2;
 
test._y = height/2;
 
 
 
// 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();
 
}
 
 
 
//createTextField( 'debug', 100, 0, 0, width, height );
 
with ( debug ) {
 
selectable = true;
 
border = false;
 
multiline = true;
 
wordWrap = true;
 
html = true;
 
}
 
  
 
// Test object
 
// Test object
test.create( [ 0, 0, '', 'torus', 8, 200, 1000 ] );
+
mySpace.create( [ 'torus', 'myTorus', 5, 200, 2000 ] );
 +
</as>

Latest revision as of 08:31, 20 October 2007

Legacy.svg Legacy: This article describes a concept that has been superseded in the course of ongoing development on the Organic Design wiki. Please do not develop this any further or base work on this concept, this is only useful for a historic record of work done. You may find a link to the currently used concept or function in this article, if not you can contact the author to find out what has taken the place of this legacy item.

<as> Mouse.hide();

  1. include "space.as"

// Instantiate a new 3D-space // - extends createEmptyMovieClip( name, layer ) createSymbol( _root, 'space', 'mySpace', 0 );

// Test object mySpace.create( [ 'torus', 'myTorus', 5, 200, 2000 ] ); </as>