首先的想法是让一个圆圈旋转
以下来自教程,它可以工作,但会引发一串错误。我将如何将光束函数中的代码放入功能循环而不是当前语法。
//Sets variable angle and speed
/*var angle3:Number = 0;*/
var speed3:Number = 5;
var angle3:Number = 0;
stage.addEventListener(Event.ENTER_FRAME, lightbeam);
//Function to let the glowing orb rotate in 3d 360 degrees.;
function lightbeam(e:Event)
{
angle3 < 360 ? angle3 += speed3: angle3 = 0;
glow_mc.rotationY = angle3;
}