First open flash.
Once you open it select flash document then make 2 layers called "Hide Cursor" and "Custom Cursor" .
Ok now use the pen tool to create something weird but do it in the Custom cursor layer so that works.
now convert that thing you made to a movie clip. To do that you use a lasso tool to have it covered, then right click on it and press "convert to symbol". Once you have done that, a window should appear and press movie clip on the selection area under the name box, then press ok.
now for the first coding, we will put it in the first frame of the layer "hide cursor".
The code is :
Mouse.hide();
Now go back to custom cursor and click on the symbol using the mouse tool that is black so you can put the code into the symbol that you drew with the pen tool.
The code for the symbol I was just talking about is:
onClipEvent (enterFrame) {
startDrag(this, true)
}Now press ctrl (on your keyboard) +enter to test and see if it works!
If you did it properly, it will work.
I only got it on december the tenth and so it is what lucario612 said "Me have a smart noggin!"
same with me but in flash, although I need help with a game I'm making with flash.
Offline
what does this have to do with scratch?
Offline
Its advanced and archmage did one about action script for beginners so this is for beginners in action script too!
Offline
id sugest u did what archmage did and put it in insperation and more, seeing as its got nothing to do w/ scratch.
However intresting method, never thought of using a drag, i always simply go
_x = _root._xmouse _y = _root._ymouse
Another thing, if your modifying the cursor, id suggest that you keep the drawing to the left, bottom part of the cross hair, as the cross hiar symbolizes where the actual mouse point is.
If you need help, contact me on one of my project, however i am still fairly new, so i dont Quite have the hang of it, but i have made ng accepted games so i guess i could try
Offline
I think it should be:
onClipEvent(load){
this.startDrag();
}Starting drag is a continual action, unlike "go to mouse pointer" in Scratch. It's more like unlocking a sprite dynamically. I could probably help you with Flash...It's started to take over the time I normally devote to Scratch
but I'm building an actual app with it that should be done in a couple weeks.
Last edited by fullmoon (2009-01-04 21:46:19)

Offline
fullmoon wrote:
I think it should be:
Code:
onClipEvent(load){ this.startDrag(); }Starting drag is a continual action, unlike "go to mouse pointer" in Scratch. It's more like unlocking a sprite dynamically. I could probably help you with Flash...It's started to take over the time I normally devote to Scratch
but I'm building an actual app with it that should be done in a couple weeks.
No it is onClipEvent(enterframe){ that works better.
Offline
bart9032 wrote:
fullmoon wrote:
I think it should be:
Code:
onClipEvent(load){ this.startDrag(); }Starting drag is a continual action, unlike "go to mouse pointer" in Scratch. It's more like unlocking a sprite dynamically. I could probably help you with Flash...It's started to take over the time I normally devote to Scratch
but I'm building an actual app with it that should be done in a couple weeks.
No it is onClipEvent(enterframe){ that works better.
Try cranking up the framerate to 30 fps or so.

Offline
Somebody needs a lesson on clip events
The clip event load executes the code only once, when the movie clip is created.
The clip event enterFrame executes the code every time there is a new frame.
Also if you are making a game I suggest you put it to 18 fps to reduce lag. If it isn't an issue your your particular program then don't bother.
Offline
archmage wrote:
Somebody needs a lesson on clip events
The clip event load executes the code only once, when the movie clip is created.
The clip event enterFrame executes the code every time there is a new frame.
Also if you are making a game I suggest you put it to 18 fps to reduce lag. If it isn't an issue your your particular program then don't bother.
I'm using macromedia flash pro 8 to be precise
Offline
bart9032 wrote:
archmage wrote:
Somebody needs a lesson on clip events
The clip event load executes the code only once, when the movie clip is created.
The clip event enterFrame executes the code every time there is a new frame.
Also if you are making a game I suggest you put it to 18 fps to reduce lag. If it isn't an issue your your particular program then don't bother.I'm using macromedia flash pro 8 to be precise
I use that too. The version of flash doesn't matter too much. The version of actionscript you are using is more important.
Offline
@ bart, obivousally if you have 8 (like me aswell) youd use AS2.
Also the best for a mouse curos would be(on the main timeline):
Mouse.hide()
onEnterFrame = function(){
cursor_mc._x = _xmouse
cursor_mc._y = _ymouse
}where the instance name of your cursor is cursor_mc
using a drag value will drag it from the current _x and _y + the dist from the mouse pointer. There are ways around this, but its pointless.
Offline