Home

Forums

Web development

 

 

 

 
     
 
dna88 Web development and Technology Forum
 
Profile   Register   Memberlist   Usergroups   FAQ   Search  Log in
Making a cool custom cursor in Flash MX

 
Post new topic   Reply to topic    dna88 Forum Index -> Multimedia Discussion Forum
Author Message
emm
Power User
Power User


Joined: 13 Jul 2004
Posts: 310

Post Post subject: Making a cool custom cursor in Flash MX Reply with quote

Hi everyone,

I was wondering if anyone could show me how to make a good custom cursor for flash mx in the shortest and simplest way. Any help or direction or tutorial will be very helpful. Thanking you in advance.
_________________
“You might say reality is the result of complex negotiations between the observer and the observed. But that is simply a point of view…”
Digital Bangladesh
Tue Aug 24, 04 6:34 am
Back to top
emm View user's profile Send private message
hasnatme
Moderator
Moderator


Joined: 22 Aug 2004
Posts: 283
Location: Dhaka,Bangladesh

Post Post subject: Reply with quote

I have made this cursor for you in Flash MX 6.0 and it should be work with all version too.

Okay now read carefully.......

First make a button with any name and then make a movieclip(which will be your cursor) and everymovieclip has a instance name and give the cursor movieclip instance name to "c" then write the scripts to the button in expert mode and you are done. An remember put the cursor movie outside of your stage.
If you need more help then let me know.

here is the code..........
Code:
on (rollOver) {
   startDrag("c", true);
   Mouse.hide();
   setProperty("c", _visible, true);
}
on (rollOut) {
}
on (rollOut) {
   stopDrag();
   Mouse.show();
   setProperty("c", _visible, false);
}

_________________
Just Fly With Your Dreams!!!
Digital Vision


Last edited by hasnatme on Thu Aug 26, 04 9:31 pm; edited 4 times in total
Wed Aug 25, 04 6:10 am
Back to top
hasnatme View user's profile Send private message Yahoo Messenger MSN Messenger
emm
Power User
Power User


Joined: 13 Jul 2004
Posts: 310

Post Post subject: Custom cursor for flash movie Reply with quote

Hello,

Thanks for the action script and direction. I tried to do as you said. It works! The cursor appears on the button. But I did not want it to appear only on a button. Is there a way that I can have the customized cursor apppear anywhere on the flash movie? For buttons and links I want the custom windows cursor. But anywhere else the customized cursor will show.

Thank you very much.
_________________
“You might say reality is the result of complex negotiations between the observer and the observed. But that is simply a point of view…”
Digital Bangladesh
Thu Aug 26, 04 3:42 am
Back to top
emm View user's profile Send private message
quantum
Site Admin
Site Admin


Joined: 07 Mar 2004
Posts: 1048
Location: Dhaka, Bangladesh

Post Post subject: How to make a custom cursor for flash MX? Reply with quote

EMM,

For what you are trying to do, the action script below should work. Copy and paste it in the first frame of the movie.

Code:
attachMovie("customCursorLinkageId", "c", 9999);
Mouse.hide();
c.onMouseMove = function(){
     this._x = _root._xmouse;
     this._y = _root._ymouse;
}


1. You have to make your cursor as a movie clip and drag an instance of the movie clip on the stage and name it "c"

2. From the library right click on the cursor movieclip, then select Linkage. Enable Export for action script, Enable Export in First frame and give the Identifier number 9999.

You are done. This method will change the cursor for anywhere on the flash movieclip stage. And this is better than any other method because of the simplicity. One problem remains though. For every button that you want a different cursor for, has to have its own custom cursor defined. Exactly as Hasnat has posted.

Hope that will work for you.
_________________

Dust fills my eyes / Clouds roll by / and I roll with them / Centuries cry / Orders fly / and I fall again
Afford best design, implement best solution. Outsource your web design.
Thu Aug 26, 04 5:59 am
Back to top
quantum View user's profile Send private message Visit poster's website AIM Address
hasnatme
Moderator
Moderator


Joined: 22 Aug 2004
Posts: 283
Location: Dhaka,Bangladesh

Post Post subject: Reply with quote

@quantum
Thanks man...your code must be work.
@emm
Otherwise you can put this demo button outside of the stage too and give the command "on load" instead of "on roll over" and remove the code "on roll out"
And I think this will be also easier for you and as quantum said for each object if you want a diffrent cursor then you should follow the first step I said before.

If you want more...then let us know to solve your problem.

Hasnat Jamil.
_________________
Just Fly With Your Dreams!!!
Digital Vision
Thu Aug 26, 04 10:51 am
Back to top
hasnatme View user's profile Send private message Yahoo Messenger MSN Messenger
emm
Power User
Power User


Joined: 13 Jul 2004
Posts: 310

Post Post subject: Flash custom cursor help Reply with quote

Hey, you guys are great! Thanks for all the help. I think, I have got what I wanted.
_________________
“You might say reality is the result of complex negotiations between the observer and the observed. But that is simply a point of view…”
Digital Bangladesh
Fri Aug 27, 04 2:07 am
Back to top
emm View user's profile Send private message
hasnatme
Moderator
Moderator


Joined: 22 Aug 2004
Posts: 283
Location: Dhaka,Bangladesh

Post Post subject: Reply with quote

You are welcome
_________________
Just Fly With Your Dreams!!!
Digital Vision
Fri Aug 27, 04 12:54 pm
Back to top
hasnatme View user's profile Send private message Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    dna88 Forum Index -> Multimedia Discussion Forum All times are GMT - 7 Hours
Page 1 of 1

 

Partners and Resources

Bangladesh hosting company

Bangladesh web design

Driven by phpBB © phpBB Group