We are starting a shoot game, and for this let’s replace our mouse pointer with a cross hair to aim at our targets.
A great introduction to movie clip variables, hide method, and assigning location.
Move the mouse over the stage to move the cross hair
CLICK HERE FOR COMPLETE CLASSIC GAMING CARTOON SMART TUTORIAL
HERE IS THE SOURCE CODE!
// solutions at say-web dot com
// FREE to USE, COPY and DISTRIBUTE
var cursor:MovieClip;
//this creates the movie clip
//we will place on stage
function initializeGame():void {
cursor = new Cursor;
//Note that the class has
//Capital C on the name
//cursor with a small c is the moive clip
// name
addChild(cursor);
//this will place a cursor on stage
cursor.enabled = false;
// this will neutralize the cursor
Mouse.hide();
//This will hide our own mouse (cursor)
stage.addEventListener(MouseEvent.MOUSE_MOVE, dragCursor);
// this functions fires when the mouse moves
// changes the cursor location
}
function dragCursor (event:MouseEvent):void{
cursor.x=this.mouseX;
cursor.y=this.mouseY;
// this will place the cursor on stage according
// to the mouse coordinates
}
initializeGame();
//thanks for watching
// see you on lesson 2





February 6th, 2012 at 7:31 am
AH louis vuitton handbags GS http://www.theiceblock.com/member/67510
February 6th, 2012 at 8:43 am
Hey! I know this is somewhat off topic but I was wondering which blog platform are you using for this website? I’m getting tired of Wordpress because I’ve had problems with hackers and I’m looking at alternatives for another platform. I would be awesome if you could point me in the direction of a good platform. kredit online beantragen
February 6th, 2012 at 9:38 am
Hey! I know this is somewhat off topic but I was wondering which blog platform are you using for this website? I’m getting tired of Wordpress because I’ve had problems with hackers and I’m looking at alternatives for another platform. I would be awesome if you could point me in the direction of a good platform. kreditrechner immoibilien
February 6th, 2012 at 9:53 am
lEQ louis vuitton outlet stores gKN http://www.visitjacksonville.com/member/27528
February 6th, 2012 at 10:33 am
Good day! I could have sworn I’ve been to this website before but after checking through some of the post I realized it’s new to me. Anyhow, I’m definitely glad I found it and I’ll be bookmarking and checking back frequently! rechtsschutzversicherung test
February 6th, 2012 at 12:17 pm
BJU louis vuitton outlet store online AWC http://isp.pembinatrails.ca/member/46659
February 6th, 2012 at 1:15 pm
My spouse and I stumbled over here from a different web page and thought I should check things out. I like what I see so now i am following you. Look forward to looking at your web page again. Gruener tee wirkung
February 6th, 2012 at 2:36 pm
yiA chanel outlet online fqX http://hermesbirkin12.quebecblogue.com/2012/02/01/chanel-handbags-that-is/
February 7th, 2012 at 4:01 pm
Great blog! Is your theme custom made or did you download it from somewhere? A theme like yours with a few simple tweeks would really make my blog jump out. Please let me know where you got your design. Many thanks [url=http://yorxx.de/cont_19.html]guenstige hausratversicherung[/url]
February 7th, 2012 at 5:41 pm
Along with almost everything that seems to be developing inside this particular subject material, all your perspectives are generally quite stimulating. Nonetheless, I beg your pardon, but I do not subscribe to your entire plan, all be it stimulating none the less. It appears to us that your remarks are generally not completely validated and in reality you are yourself not really totally confident of the point. In any case I did appreciate reading through it.|I do enjoy the way you have framed this particular problem and it really does offer me personally some fodder for thought. Nevertheless, through just what I have witnessed, I only wish as the actual responses stack on that folks remain on point and in no way start on a tirade associated with the news du jour. Yet, thank you for this outstanding point and though I do not really concur with this in totality, I regard your perspective.|A lot of of whatever you point out is supprisingly precise and it makes me wonder why I hadn’t looked at this in this light before. This particular piece really did turn the light on for me as far as this particular subject goes. However there is 1 position I am not really too comfy with and while I attempt to reconcile that with the main theme of your position, allow me see exactly what the rest of your visitors have to say.Nicely done.|The heart of your writing while sounding agreeable at first, did not work properly with me after some time. Somewhere within the paragraphs you managed to make me a believer but only for a very short while. I nevertheless have a problem with your leaps in assumptions and you would do well to fill in those gaps. In the event that you can accomplish that, I could definitely be amazed.|In the great design of things you actually receive an A with regard to hard work. Exactly where you misplaced me personally ended up being in your particulars. As it is said, details make or break the argument.. And it could not be more accurate right here. Having said that, allow me inform you just what did do the job. Your authoring can be quite convincing which is most likely why I am taking the effort to comment. I do not make it a regular habit of doing that. 2nd, although I can easily see the jumps in reasoning you make, I am not really certain of exactly how you seem to connect the details that help to make the actual conclusion. For right now I will subscribe to your position but wish in the foreseeable future you connect the dots better.}
February 7th, 2012 at 7:02 pm
Howdy! Someone in my Facebook group shared this website with us so I came to take a look. I’m definitely loving the information. I’m bookmarking and will be tweeting this to my followers! Wonderful blog and wonderful design. [url=http://yorxx.de/cont_14.html]rechtsschutzversicherung preisvergleich[/url]