1){ j--; } else { dir=false; } } //create line linez.addLine(new Line3D(linez, new LineMaterial(theColor.selectedColor*j, 1), 3, new Vertex3D(x0,y0,z0), new Vertex3D(x1,y1,z1))); /* ------------------------------------------------ * * an alternative to add line, is addNewLine * * the big diffrence is you dont get to declair * * a material, it just uses the "lines3D" default. * * ------------------------------------------------ * * linez.addNewLine(3, x0, y0, z0, x1, y1, z1); * * ------------------------------------------------ */ //update vars x0 = x1; y0 = y1; z0 = z1; } //mouse influence on camera if(willHover.selected==true){ view.camera.x += (((mouseX -(paperCanvas.width*.5))*3)-view.camera.x)*.05; view.camera.y += (((mouseY-(paperCanvas.height*.5))*3)-view.camera.y)*.05; } //render scene view.renderer.renderScene(view.scene, view.camera, view.viewport); } //__________________________________________________________ // setup private function setupLorenz():void { x0 = 0.1; y0 = 0; z0 = 0; h = 0.01; a = theA.value; b = theB.value; c = theC.value; N = 3000; i = 0; view.scene.removeChildByName("linez"); linez = new Lines3D(skin, "theline"); view.scene.addChild(linez, "linez"); //skin.lineColor = 0xFFFFFF * Math.random() } //__________________________________________________________ // revert camera private function grabCam():void { if(!willHover.selected){ view.camera.x = 0; view.camera.y = 0; view.camera.z = -200; } } ]]> Panel { borderStyle: solid; borderColor: #666666; borderAlpha: 0.58; borderThickness: 2; roundedBottomCorners: false; cornerRadius: 5; headerHeight: 17; backgroundColor: #333333; } Button { fillColors: #000000, #666666, #666666, #000000; color: #ffffff; textRollOverColor: #ffffff; textSelectedColor: #ffffff; borderColor: #666666; themeColor: #00ff00; } NumericStepper { borderStyle: none; borderColor: #666666; backgroundAlpha: 1; fillColors: #000000, #333333, #333333, #000000; backgroundColor: #000000; color: #ffffff; themeColor: #00ff00; } CheckBox { fillColors: #000000, #333333, #333333, #000000; borderColor: #999999; iconColor: #ffffff; disabledIconColor: #cccccc; color: #ffffff; textSelectedColor: #ffffff; textRollOverColor: #ffffff; themeColor: #00ff00; } ColorPicker { swatchPanelStyleName: swatchPanel; } .swatchPanel { backgroundColor: #666666; columnCount: 7; }