基本図形の作成2
pp(PaperPlane)の下の行に「error undefned propertyCompiled Complete」ってでるんだが、なんこれは。
♥0 |
Line 32 |
Modified 2011-08-24 22:07:01 |
MIT License
archived:2017-03-20 13:49:21
ActionScript3 source code
/**
* Copyright Nowloading_ ( http://wonderfl.net/user/Nowloading_ )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/iNQH
*/
package {
import org.papervision3d.materials.*;
import org.papervision3d.objects.primitives.*;
import org.papervision3d.view.*;
[SWF(backgroundColor=0x000000)]
public class primitives2 extends BasicView {
public function primitives2() {
init();
}
private function init():void{
var material:WireframeMaterial = new WireframeMaterial(0xff9999);
material.doubleSided = true;
var entyu:Cylinder = new Cylinder(material,150,500,5,10);
entyu.x = 300;
entyu.z = 100;
var cone:Cone = new Cone(material,100,250,10);
cone.x = -200;
var pp:PaperPlane = new PaperPlane(material, 2);
pp.z = 500;
var ya:Arrow = new Arrow(material);
ya.scale = 0.2;
ya.z = -500;
ya.x = -200;
camera.y = 400;
scene.addChild(entyu);
scene.addChild(cone);
scene.addChild(pp);
scene.addChild(ya);
startRendering();
}
}
}