Easy code from a book. But does not work!

Hey guys, I got this code straight out of a Flash Actionscript book but I can’t get it to work. The output panel does not show an error, but the code does not do what it should. It is a mouse trail

Any thoughts, would be appreciated

onClipEvent(load){
//CREATE 10 CURSOR FOLLOWERS
for(var i=0;i<10;i++){
_root.attachMovie(“glitter”,“glitter”+i,i);
}
//START THE ARRAY
trail = new Array();
}
onClipEvent(enterFrame){
//MARK THE MOUSE LOCATION
cursorLoc = {x:_root._xmouse, y:_root._ymouse};
//ADD THE NEW LOCATION TO THE ARRAY
trail.push(cursorLoc);
//DELETE THE OLDEST LOCATION
if(trail.length > 10) trail.shift();
//CHANGE THE POSITIONS OF ALL CURSOR FOLLOWERS
for(var i=0; i<trail.length; i++) {
_root[“cursor”+i]._x = trail*.x;
_root[“cursor”+i]._y = trail*.y;
_root[“cursor”+i]._alpha = i*10; //CHANGE BLEND TO
}
}

Looking over it very quickly, this IF statement is broken:

if(trail.length > 10) trail.shift();

You need the curlies {}.

Good eye but still no luck. Any thoughts?

does it need brackets when its only one line? I know php doesn’t require it.