Okay, open up Macromedia Flash MX. Then, draw a cursor.Then make mc (movie clip, first choose your own draw cursor and then right click and convert to symbol and then "movie clip" and then press OK)Okay, now instance name it "cursor". (How to do that = choose your cursor and then - properties - and then write to the "instance name" bar, cursor) Okay, now you have a mc with instancce name "cursor". Or you SHOULD have it....anyway, next, click the cursor FRAME once. Then open up ACTIONS panel. Then, put this code into it: Mouse.hide(); startDrag("cursor", true); That´s it! Easy, isn´t it? Okay, now, if you don´t know anything about scriptin, let´s look at the code! Mouse.hide(); = it means that, you can´t see the mouse.I don´t mean now your custom cursor. startDrag("cursor", true); startDrag action means: that cursor, you created, is now starting dragging the cursor. Then, "true" means that, the "lockcenter" is true. Don´t set there "false"`cose the whole code won´t work then. Okay, I hope, your custom cursor would work now. You can also set in properties panel the frame rate: 12 to 60. Now, click Control - Test movie.....YOUR JUST CREATED CURSOR, THAT WILL DRAG THE MOUSE!!!
|» Level Basic|
Rating: 6 Votes: 27
|LIKE SCRIPTING!!! XD|
|Download the files used in this tutorial.|
|Download (0 kb)|
|More help? Search our boards for quick answers!|