when you make your object export it to actionscript with the name crossHair
Just changed the name of the object from heart to crosshair
Source:
PHP Code:
http://biochimistu.blogspot.com/2008/02/animated-custom-cursor-actionscript-30.html
ActionScript Code:
Mouse.hide();
var angle:Number = 0;
var heartScale:Number = 0.5;
var range:Number = 0.05;
var speed:Number = 10;
var crosshair:crossHair = new crossHair();
addChild(crosshair);
stage.addEventListener(Event.ENTER_FRAME, enterFrameHandler);
function enterFrameHandler(event:Event):void {
crosshair.mouseEnabled = false;
crosshair.x = mouseX;
crosshair.y = mouseY;
crosshair.scaleX = crosshair.scaleY = heartScale + Math.sin(angle) * range;
angle += speed;
}