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
_root["cursor"+i]._y = trail[i].y;
_root["cursor"+i]._alpha = i*10; //CHANGE BLEND TO
}
}
if(trail.length > 10) trail.shift();
You need the curlies {}.
#If you have any other info about this subject , Please add it free.# |