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

From Organic Design wiki
(Test new include)
 
m
 
(144 intermediate revisions by 2 users not shown)
Line 1: Line 1:
#include "Space.as"
+
{{legacy}}
 +
<source lang="js">
 +
Mouse.hide();
 +
#include "space.as"
  
// Create a ball
+
// Instantiate a new 3D-space
attachMovie( 'ball', 'ball', 0 );
+
// - extends createEmptyMovieClip( name, layer )
col = new Color( ball );
+
createSymbol( _root, 'space', 'mySpace', 0 );
col.setTransform( { ra:0x40, ga:0x40, ba:0x80 } );
+
 
 +
// Test object
 +
mySpace.create( [ 'torus', 'myTorus', 5, 200, 2000 ] );
 +
</source>

Latest revision as of 13:19, 6 August 2024

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, now this page is for historic record only.
Mouse.hide();
#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 ] );