I was requested to do this tutorial up after putting up my flash sig. I'll upload it in different parts so that you can look over each bit of it individually. The first most noticalbe thing about my sig is probably the spinning crosshair This tutorial will show you how to make that (including how to make it follow the mouse smoothly). Example: <OBJECT CLASSID='clsid27CDB6E-AE6D-11cf-96B8-444553540000' WIDTH=150 HEIGHT=150><PARAM NAME=MOVIE VALUE=http://www.l4mbda.gamerenders.net/images/flash/spincur.swf><PARAM NAME=PLAY VALUE=TRUE><PARAM NAME=LOOP VALUE=TRUE><PARAM NAME=QUALITY VALUE=HIGH><EMBED SRC=http://www.l4mbda.gamerenders.net/images/flash/spincur.swf WIDTH=150 HEIGHT=150 PLAY=TRUE LOOP=TRUE QUALITY=HIGH></EMBED></OBJECT> Ok, I am assuming you guys will be using Flash MX and have some idea of how to use flash okies? I will say before I begin: I am a not pr0 at flash and this is my first proper sig using it However I do have experience with VB and C++ which helps when learning flash. ============================== CREATING THE CURSOR: 1) Open up a new flash document 2) First off, lets make your cursor. Lets keep it simple to begin with: draw a box onto the scene in front of you (keep it small rememeber - this is going to be your cursor). I would suggest that you turn off the box fill (or delete it after you draw it). 3) Select the box by dragging (or use CTRL+A) and hit F8 (or convert to symbol). Save it as 'TC' (no quotes) as a Movie Clip. Go to the main document and click TC (it should now have a blue border around it). Set its instance name to 'TC' (no quotes) also. 4) Double click TC to open it up in a new window for editing. Select the box again and hit F8 (or convert to symbol) and this time call it MCA (or whatever - at this point it doesn't matter) as a Movie Clip. 5) Right click scene 40 on the timeline and hit 'Insert Keyframe'. Then, select all frames by clicking scene 1 and shift+clicking scene 40. Right click and hit 'Create Motion Tween'. 6) At the bottom under properties, select rotate --> CW and set times to 1. Thats the custom cursor done! Ok, now thats over go back to the main document and press CTRL+J (modify-->document) and set FPS to anything 40 or more. Hit CTRL+Enter and you can see the cursor spinning ! =========================== ADDING THE CODE: 1) Open the actions panel and select Frame 1 in the timeline. 2) Add the following code to Frame 1: Mouse.hide(); TC.onEnterFrame = function() { var xMouse = _root._xmouse; var yMouse = _root._ymouse; if(Math.abs(xMouse - this._x) < 1) { this._x = xMouse; this._y = yMouse; } else { this._x -= (this._x-xMouse) / 6; this._y -= (this._y-yMouse) / 6; } } Tutorial Finished! Thats all, if you are too lazy to do it yourself, I even wrote you a quick FLA Aren't I kind? If you want to increase / decrease the rate at which the cursor snaps to the mouse, edit the lines: this._x -= (this._x-xMouse) / 6; this._y -= (this._y-yMouse) / 6; Increase the number (6) and the cursor takes longer to catchup with the mouse. Lower it for the opposite effect. Download FLA Example
ohh yeah ty alto man now can u help me and to link stuff in ur name also plzz put pics. i am a total n00b in flash
Simply convert the text that you want to be clicked into a button. Select the button and under actions add the following: on(release) { getURL("http://siteurl.com","_blank") }
this is the only part i cannot figure out plzz do show a image of how to do this ty when u have free time also sry for double post
Ok. Basically you have your Square... you've hit F8 to convert it to a symbol (and called it TC and made it a Movie Clip). Now, at this point, either it has gone back to the plain document view OR it has opened up the symbol for editing. If it has opened up the symbol for editing you will see something like this at the top left of the screen: Ok, once you have opened it up for editing and it looks like that @ the top left you can go onto the next step! Do you understand now?
Did you include all frames in the motion tween? Does it stop spinning when you add the code to frame one? [which begins mouse.hide()]. If you can't get it working, download my .FLA (save it to desktop / on your computer befoe opening) and you can see what I did there. If anyone does have problems using any of my code that I put up, post in the respective topic.
Yea, it stops working when I add the code into frame 1, the one you stated above. Then I kept checking your .FLA to see what I did wrong... [EDIT] I tried again, this time it keeps spinning but the code won't work on it?
Goto Windows --> Library (on the toolbars at the top) and it should show TC as a symbol. Then just drag that onto the slide you want and add the code which begins Mouse.hide() to that layer. CommandoSGT - Is my FLA not working for you? If you have it at a stage where it is spinning but the code doesn't work: Click scene one in the timeline (on the actual document - NOT inside the symbol itself) and open the actions panel. Paste in the following code: Mouse.hide(); TC.onEnterFrame = function() { var xMouse = _root._xmouse; var yMouse = _root._ymouse; if(Math.abs(xMouse - this._x) < 1) { this._x = xMouse; this._y = yMouse; } else { this._x -= (this._x-xMouse) / 6; this._y -= (this._y-yMouse) / 6; } } If you've done the above correctly - it will work. EDIT: Ah ok KillJoY_gs I see what you mean. If you look where it says actions - it reads: Actions - Movie Clip. That should read: Actions - Frame. Then paste in code! If dbl clicking won't edit it - just right click and choose EDIT