This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2009-01-01 18:57:55

bart9032
Scratcher
Registered: 2008-06-16
Posts: 100+

How to make a custom cursor in flash

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 :

Code:

  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:

Code:

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.


Hi, my name is Bartholomew JoJo 'Bart' Simpson. Nice to meet you,
Actually, no I am not Bart Simpson. I am bart9032  cool

Offline

 

#2 2009-01-01 21:45:42

DarthPickley
Scratcher
Registered: 2008-06-13
Posts: 100+

Re: How to make a custom cursor in flash

what does this have to do with scratch?

Offline

 

#3 2009-01-02 02:10:01

bart9032
Scratcher
Registered: 2008-06-16
Posts: 100+

Re: How to make a custom cursor in flash

Its advanced and archmage did one about action script for beginners so this is for beginners in action script too!


Hi, my name is Bartholomew JoJo 'Bart' Simpson. Nice to meet you,
Actually, no I am not Bart Simpson. I am bart9032  cool

Offline

 

#4 2009-01-03 10:58:36

cds56
Scratcher
Registered: 2008-05-02
Posts: 500+

Re: How to make a custom cursor in flash

thanks, now i noez how to make a new cursor  smile


http://img192.imageshack.us/img192/909/meowdevlogo.pnghttp://i32.tinypic.com/pucti.png

Offline

 

#5 2009-01-04 07:51:44

yambanshee
Scratcher
Registered: 2007-11-06
Posts: 500+

Re: How to make a custom cursor in flash

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

Code:

_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  tongue

Offline

 

#6 2009-01-04 21:44:56

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: How to make a custom cursor in flash

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  sad  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)


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#7 2009-01-05 00:28:03

bart9032
Scratcher
Registered: 2008-06-16
Posts: 100+

Re: How to make a custom cursor in flash

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  sad  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.


Hi, my name is Bartholomew JoJo 'Bart' Simpson. Nice to meet you,
Actually, no I am not Bart Simpson. I am bart9032  cool

Offline

 

#8 2009-01-05 16:51:57

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: How to make a custom cursor in flash

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  sad  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.


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#9 2009-01-05 16:58:18

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: How to make a custom cursor in flash

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.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#10 2009-01-05 16:59:38

bart9032
Scratcher
Registered: 2008-06-16
Posts: 100+

Re: How to make a custom cursor in flash

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


Hi, my name is Bartholomew JoJo 'Bart' Simpson. Nice to meet you,
Actually, no I am not Bart Simpson. I am bart9032  cool

Offline

 

#11 2009-01-05 17:04:20

archmage
Scratcher
Registered: 2007-05-18
Posts: 1000+

Re: How to make a custom cursor in flash

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.


Hi, I am Archmage coder extraordinaire. I do Scratch,pascal,java,php,html, AS2 and AS3. Leave me a message if you want coding advice. Also check out my personal website, lots of good stuff about web development, Flash, and Scratch (v1 and v2) !

Offline

 

#12 2009-01-31 20:33:46

bart9032
Scratcher
Registered: 2008-06-16
Posts: 100+

Re: How to make a custom cursor in flash

I use actionscript 2


Hi, my name is Bartholomew JoJo 'Bart' Simpson. Nice to meet you,
Actually, no I am not Bart Simpson. I am bart9032  cool

Offline

 

#13 2009-02-01 05:55:08

yambanshee
Scratcher
Registered: 2007-11-06
Posts: 500+

Re: How to make a custom cursor in flash

@ 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):

Code:

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

 

Board footer