Please help with this tutorial
This tutorial si about moving star out of the stage center, this is the script:
import flash.display.MovieClip;
import flash.events.Event;
var container:MovieClip = new MovieClip();
addChild(container);
addEventListener(Event.ENTER_FRAME, addstarred);
function addStared(e:Event):void
{
var mc:starred; = new Starred();
mc.x = stage.stagewidth / 2;
mc. y = stage, Stageheight / 2;
mc.Z = 0;
mc.xVel = Math,random() * 4 -2;
mc.yVel = Math,random() * 4 -2;
mc.zVel = Math,random() * 4 -2;
container. addChild(mc);
mc.addEventListener(Event. ENTER_FRAME, animate);
}
function animate(e:Event):void
{
e.currentTarget.x += e.currentTarget.xVel;
e.currentTarget.y += e.currentTarget.yVel;
e.currentTarget.z += e.currentTarget.zVel;
if (e.currentTarget.count>=100)
}
This are the 2 errors:
Scene 1, Layer 'Layer 1', Frame 1, Line 13 1084: Syntax error: expecting identifier before assign.
Scene 1, Layer 'Layer 1', Frame 1, Line 34 1084: Syntax error: expecting identifier before rightbrace.
What is identifier?
With this part it is supposed to work, but doesn't, the part that a left out on purpose, is the one that stop the stars moving at one point in the stage.
Thank you for your help.