1. draw your cursor and make it a symbol -->movie clip, making sure the registration is the upper-left hand corner box so your mouse orientation will be correct. NOTE: the higher your fps, the smoother your cursor will flow. I kept mine at 12 fps and it seems fine, but the tutorial recommended 30 or higher which seems kinda overkill. Your call here.
2. give your movie clip an instance name. The code below uses "cursor_mc" as the instance name.
3. on a new layer inside your movie clip, insert the Action Script code:
cursor_mc.startDrag(true);
Mouse.hide();
And that's it! Hopefully you get it to work.
No comments:
Post a Comment