Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Mouse Cursor On Rollovers



I want to have a flash page with a grid of blocks. The blocks wil be floating over a picture and are all movie clips. I want to create a roll over effect so that the opacity of the blocks change when you move over them, but I dont want the hand cursor to come up because people will assume they can click them. And idea how to keep the origional mouse cursor with a rollover? I did see some guys site were he had a similar thing, I assume e used movie clips.



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 03-03-2005, 07:51 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Mouse Cursor On Rollovers
I want to have a flash page with a grid of blocks. The blocks wil be floating over a picture and are all movie clips. I want to create a roll over effect so that the opacity of the blocks change when you move over them, but I dont want the hand cursor to come up because people will assume they can click them.

And idea how to keep the origional mouse cursor with a rollover? I did see some guys site were he had a similar thing, I assume e used movie clips.

Cursor Change - On Rollovers
Hello,

The cursor altamatically changes when the buttons are rolled over when made to a flash movie, however this stops happening when embedded in a Director ,movie?

Does anyone know if there is there a publish setting that will solve this?

Thanks,

Emily

Cursor Sticking On Rollovers
I've noticed in my Flash movie that after I rollover a button my cursor remains in the form of the "hand" and doesn't revert to the "arrow" until I move off of the movie window.

Why is this happening?

Thanks.

Custom Cursor Troubles With Rollovers
Hi all,

I can't get my head around this one:
I have a movieClip on the stage which acts as a cursor. Next to it I
have a button with some rollovercode. Seperately the work fine, together
they have some conflict. I only get some nervous rollover/rollout
behaver if I move the mouse over the button, but not the expected
over/out behavior like the code suggests. Conflicting events?

This is the (barebones) code:

The cursor:
package
{
import flash.display.MovieClip;
import flash.events.MouseEvent;
public class CCursor extends MovieClip
{
public function CCursor()
{
stage.addEventListener( MouseEvent.MOUSE_MOVE, moveMe );
}
private function moveMe( evt:MouseEvent ):void
{
x = evt.stageX;
y = evt.stageY;
}
}
}


The button:
package
{
import flash.display.SimpleButton;
import flash.events.MouseEvent;
public class Butt extends SimpleButton
{
public function Butt()
{
addEventListener( MouseEvent.MOUSE_OVER, zoomIn );
addEventListener( MouseEvent.MOUSE_OUT, zoomOut );
}
private function zoomIn( evt:MouseEvent ):void
{
scaleX = 2;
}
private function zoomOut( evt:MouseEvent ):void
{
scaleX = 1;
}
}
}

Thanks in advance,
Manno




--
----------
Manno Bult
http://www.aloft.nl

On Button Rollovers I Dont Want The Cursor Change --
so that I just keep getting the arrow, and no 'finger' comes up pon the rollover? Thanks! I know there's a line of scripting that will do this. isnt there?

John

Newby Questions - Hand Cursor Of/AS Tint Change On Rollovers
hi there kirupas!
i have 2 really really dumb questions lol

how can i disable the handcursor on a texbox link rollover?

by the way, is it possible to set a movieclip tint on a rollover with AS? if so, how?
i mean, i created a cursor, and wanted it to change the tint on that link textbox with rollovers...


thanks in advance!

Custom Cursor To Return To The Regular Mouse Cursor
How can I get my custom cursor to return to the regular mouse cursor when in the bottom 3rd of my flash movie. I need to do this for nav functions and I want the regular cursor actions in this area. So to recap: within the top 2/3 of the movie I will have my custom cursor, upon entering the bottom 3rd of my movie I need the cursor to switch back and vice verse...

my code below, please any suggestions are very helpful as I have tried several things:

stop();

import flash.events.Event;
import flash.events.MouseEvent;
import flash.ui.Mouse;

Mouse.hide();

stage.addEventListener(MouseEvent.MOUSE_MOVE, moving);
function moving(evt:MouseEvent):void {
if (cursor.currentFrame != 0) {
cursor.gotoAndStop(1);
}
cursor.x = stage.mouseX;
cursor.y = stage.mouseY;
cursor.mouseEnabled = false;
evt.updateAfterEvent();
}





//These three eventlisteners are telling flash to "listen" for specific events
//in our case if the mouse moves and if the mouse button is down or up.
//then if one of these events happens, it calls a function (mouse_down, mouse_up or moving).
stage.addEventListener(MouseEvent.MOUSE_DOWN, mouse_down);
stage.addEventListener(MouseEvent.MOUSE_UP, mouse_up);


// This is how to construct a simple function,
// this function will write in our text field "mouse is moving"
// when the even is raised by the eventlistener

// function just like above, just for the mouse down event.





function mouse_down(e:MouseEvent) {
if (mouseX < 800 && mouseY < 450) {
timer.start();
timer2.start();
}
}

// function just like above, just for the mouse up event.
function mouse_up(e:MouseEvent) {
timer.stop();
timer2.stop();
}

Thanks again and help!

Mouse Rollovers?
You'll have to forgive my complete ignorance but could you explain how I do this

" place an invisible button (empty frames 1 to 3, square at frame 4 of button) above each character movie."

I know how to add the code but how do I create an invisible button?

Rollovers With Mouse Following
hi.
i used the follow mouse tutorial to make an icon that follows mouse movement...i hid the mouse using mouse.hide() as well...

anyway, i have some rollovers that don't seem to recognize the icon that is following my mouse movement.
is there a way to get around this?

thank you...

Smooth Mouse Rollovers
Hi.
Does anyone know of a tutorial for smooth mouseovers ?
I need it to play a movie on mouseover, and play the same movie in reverse on mouseout.
I did this about three years ago, but have forgotten the action script.
Can anyone help?
tia

Custom Mouse Cursor Conflict With Mouse Trail
When I put mouse trails and custom mouse cursor script in the same scene the mouse trails work but the cursor does not change to the custom cursor. If I use the custom mouse cursor script in a seperate scene, on its own, it works fine. I think that the two scripts are conflicting.
Mouse trail script:

onClipEvent (enterFrame) {
//x movement
mx=_root._xmouse;
if (mx<_x) {
dx=_x-mx;
}
else {
dx=mx-_x;
}
moveSpeedx=dx/10;
if (mx<_x) {
_x=_x-moveSpeedx;
}
else {
_x=_x+moveSpeedx;
}
//y movement
my=_root._ymouse;
if (my<_y) {
dy=_y-my;
}
else {
dy=my-_y;
}
moveSpeedy=dy/10;
if (my<_y) {
_y=_y-moveSpeedy;
}
else {
_y=_y+moveSpeedy;
}
}

Custom mouse cursor script:
Layer 1(functions):

stop();
/* update the cursor coords */
function updateCursor() {
_root.cursor._x = _xmouse;
_root.cursor._y = _ymouse;
updateAfterEvent();
}

Layer 2(on event handlers):

onClipEvent(load) {
Mouse.hide();
this.swapDepths(100);
}
onClipEvent(mouseMove) {
_root.updateCursor();
}

Please help!

Changing Mouse Cursor On Mouse Over/out Without Drag Movie?
Hello,
I have a movie clip/button that activates some actions but I don't want the mouse pointer show the link icon (hand) and instead show the normal arrow icon. Is this possible with a fast mouse.smth actionscript or is a complex startdrag/stopdrag of movieclips the only way out? Thanks in advance.

Edited Mouse Cursor Vs Right Mouse Button Click
I changed the mouse cursor using a tutoral from this forum, but when I press the right mouse button, the standard mouse cursor reapears...

How to prevent that?

Mouse.hide(); Does Not Work - Mouse Cursor Is Still Shown
why mouse cursor does not hide ?
the mc cursor to replace mouse cursor is shown together with it;
what´s wrong?
thanks



Quote:




onLoad = function () {
Mouse.hide();
cursor.swapDepths(200);
};

onEnterFrame = function () {
cursor._x = _xmouse;
cursor._y = _ymouse;
};

onUnload = function () {
Mouse.show();
};

Edited Mouse Cursor Vs Right Mouse Button Click
I changed the mouse cursor using a tutoral from this forum, but when I press the right mouse button, the standard mouse cursor reapears...

How to prevent that?

Defining Mouse Area For Rollovers
hi,

i have a file called links.swf which contains 5 links. When the mouse rolls over LINK 2, it loads another "swf" to play some animation and displays the sublinks of LINK 2. When the user moves beyond a certain area within which the sublinks lie, i want to replay the animation and load back the original links file. i have used the following script to define the area.

topy = "50";[variable defining the topmost y postition]
downy = "115"; [variable defining bottommost y position]
startDrag ("_root.sensor", true);
ypos = getProperty (_root.sensor, _y );[trap y position]
if (maths.abs(ypos)<topy and maths.abs(ypos)>downy) {
play (); [plays the frames of the animations and loads
back the original links file]
}

but this script is not working though it is not showing any errors. pls help me if u can.

Is There A Way To Keep Mouse From Triggering Menu Rollovers?
I created a menu with 8 buttons on the left and 8 on the right of the screen. In the middle I drew a rectangel with a white fill @ 25% alpha.

When the mouse is run over each button I set the over state to display text in the rectangle. This all works fine EXCEPT I found that when the mouse is place in the empty box it the text from the buttons appear.

I guess it is because that text is part of the rollover state of the button and therefore it is as if I put a button in rectangel.

Is there a way I can accomplish what I am attempting to do without the problem of the text being sensitive to the mouse movement over it???

I only want the text to show when the button is rolled over.

Thanks

RollOvers With Fast Mouse Events
I've been developing a game and have some serious problems with detecting and reacting to RollOver and RollOuts. I suspect my methodology for programming the events is at fault and not Flash.

The problem I'm having is that if the user uses a fast mouse motion to roll over a clip, the standard

myMovie_mc.onRollOver = function(){
show_mc._alpha = 100;
};
myMovie_mc.onRollOut = function(){
show_mc._alpha = 0;
};

either will a) not react to the rollover, or b) will react to the mouse rollover event but will not catch on to the fast rollout, thus remain is the 'RolledOver' position. This problem is compounded when they rollover another clip and now I've got two or more clips in the Rolled Over up state. I've pretty much forgone using button symbols in favor for movie clips and the wealth of props they support but perhaps buttons have a better event engine for this? I've not tried it.

I would like to keep the user moving the mouse as fast as possible, but I want the events to trigger and respond to them at the same speed.
Typically the above code would work fine, but perhaps I should use a conditional to check the state then react?

In any case, I'd love to hear your thoughts on how to code for fast mouse events...

Custom Mouse Cursor With Mouse Events
i'm trying to use a custom mouse cursor for a mouse over and dragging effect (an open hand and a closed hand).

the hand MC has two frames, one frame with the label "open", and one with the label "closed". i'd like to rollover an object, display the hand cursor with the "open" frame. however, when i do this, because the hand is now tracking underneath the mouse cursor, the object underneath immediately calls it's roll_out dispatcher.

how can objects underneath the hand cursor still fire their mouse event dispatchers (roll_out, mouse_up and mouse_down)?

Mouse Cursor Changing On Mouse Over A Button
I´ve made a custom mouse cursor but the cliente wants that little hand when the mouse is over a button and/or links. Is that possible?

Mouse Cursor Changing On Mouse Over A Button
I´ve made a custom mouse cursor but the cliente wants that little hand when the mouse is over a button and/or links. Is that possible?

Mouse Over Attached To Mouse Cursor..
Hey,

I've made a basic mouse over in flash that opens a box displaying text in a fixed position. I was wondering if anyone knows any good tutorials for making the box move with the cursor when its moused over?

P.s. Ive attached an image of the mouse over.

Cheers.

Mouse Cursor
how do i fix up an image or text as my mouse cursor

Following The Mouse Cursor
How can I make a movie clip follow the mouse cursor, but a slower speed?
thanks
cyborgyin

Mouse Cursor
I am creating a flash animation that would run from a CD through a flash player. I saw a tutorial in flashkit, on how to change the mouse cursor, but didnt find what I want. I want to change the mouse cursor when I move my mouse pointer to a movie clip. IS THIS POSSIBLE IN FLASH

Run Away From Mouse Cursor
How to write the action script to make a movie clip run away from the mouse cursor?

Like this one:
http://www.sheepgame.co.uk/

Thanks!

Mouse Cursor
Hi, I'd like to know how do i change my mouse cursor when i rollOver a button. ( I hope I 've been clear)
thanks
Gpardo

Mouse Cursor
How do I prevent the mouse cursor from moving but it's still able to click on a button ??

Mouse Cursor
hello,

i have a dragable window which has coordinates it cannot exide this window contains pixel fonts, now my problem is somtimes when i drag this window to the point where it stops but my mouse cursor exides the sides of the movie the fonts somtimes go blured, i think this is due to the window stoping on 0.whatever of a pixel, i have a reset button with the following code:

on (release) {
_root.back = true;
}

and my dragable window has this code:

onClipEvent (load) {
speed = 10;
_root.target = 75;
_root.target2 = 14;
}
onClipEvent (enterFrame) {
if (_root.back == true) {
_y += (_root.target-_y)/speed;
_x += (_root.target2-_x)/speed;
}
}

is there a way i can tell it that if while im draging the window if the cursor leaves the movie clip to set _root.back = true


hope i have explained this well enough

thanks

A New Mouse Cursor
Hi everyone,

I would like to know how to write a script for replace the actual mouse's cursor by another symbol?? I have ever tryed for a single frame but not for a complete web site.

Thanks

Mouse Cursor Help
Is there anyway to make it so that when your cursor goes over a button, it does not change from the arrow to the little hand. Currently I am having to use a custom cursor to avoid this problem, but if there is some otherway to get rid of that hand I would really like to know.

Mouse Cursor
hey everybody,
I am making a movie where I have a trigger that when the cursor rolls over it moves an object.. the trigger is only used for mouse over and not for onclick events. I was wondering if anyone knows how to change the cursor so that when the cursor is over the trigger it is the normal arrow instead of the click hand..
thanks in advance..
here is the project:
http://hybrid.concordia.ca/~n_earle
-Noah

Mouse Cursor
Hi,

I would like to know how thanks AS3 i can change the mouse cursor to a pointing finger hand cursor...as if there was a htlm link.

thanks a lot.

A.

Mouse Cursor ?
Hello,

I don't like the way the cursor turns into a hand when I mouse over a button. How can I make it so the mouse arrow doesn't change into a hand? I would just like it to stay an arrow.

Thanks..... I'm using CS3

FireWire Girl

Mouse Cursor
Hi... this may be a stupid question, but I'm just not figuring this out...

I want to make a custom cursor that only appears when you mouseover a specific movie clip....

I created an actionscript that does this, but the problem is that the mouse cursor needs to change back to the default, once the mouse rolls off the specific clip...

I attached these actions to my movie clip, which changes the cursor...


onClipEvent(mouseMove){

if (this.hitTest(_root._xmouse,_root._ymouse)){

Mouse.hide();

_root.cursor._x = _level0._xmouse;
_root.cursor._y = _level0._ymouse;

updateAfterEvent;
trace ("cursor")
}

}



Can someone help me figure out how to change back when the mouse rolls off this?

Thanks for reading!

Mouse Cursor
Hi,

I would like to know how thanks AS3 i can change the mouse cursor to a pointing finger hand cursor...as if there was a htlm link.

thanks a lot.

A.

About Mouse Cursor
I want to change the hand cursor of the mouse to an ordinary cursor the pointer, when it hovers over the button, i know theres a simple code for that but i forgot it... i laready used it in my other project but i forgot to save the file... does someone here knows the code?

? Eye Following (looking At) Mouse Cursor ?
Hello!

I can't seem to solve this one at all:
I've made an image with an eye in photoshop which I'd like to use as an "enter page" on my band's website.
It would be pretty cool if the eye would look at the mouse cursor all the time, so it should follow the direction when you move the mouse.
I was thinking that using two image layers could be the base of animating this: one layer for the eyeball itself which can move behind the "skin" in the larger image. If i move the eyeball layer behind the skin layer in photoshop, it looks ok.

The problem is that I don't have a clue about how to do this in Flash (I use Flash 5) Could anyone help me out about this?

PS: can I save the skin layer as a file with transparency that can be used in Flash? I guess this is essential to be able to see the lower eyeball layer...

THANX!

No Mouse Cursor
Okay, I know in flash it is possible to create custom cursors, but is there a way to not use the default mouse settings.

Default mouse settings meaning, whenever you create a rollover in flash, upon rollover the arrow cursor is replaced with a hand/finger to indicate a link. Is there a way to get rid of the hand cursor upon rollover?

Thanks.

Mouse Cursor
In my flash movie, I have an action when the mouse rolls over a movie clip, but the mouse cursor changes to a hand when it rolls over it. How do I get the cursor to stay an arrow when they rollover the clip?

Mouse Cursor
Hi,

I would like to know how thanks AS3 i can change the mouse cursor to a pointing finger hand cursor...as if there was a htlm link.

thanks a lot.

A.

Mouse Cursor
Oke
I only used flash for a month now and got
a little sick of making those weird stick movie's
so I visited kirupa and found tutorials,
and started working with them so
I made a borderless window ( tnx 2 kirupa )
And I made a mouse cursor ( tnx 2 kirupa )
and it all worked
but every time you leave the borderless window the cursor
stay's in the window and the mouse reappears
so my question is, is it possible 2 make the mouse cursor inside the borderless window disappear when you leave the window and come back when you enter it
Plz help me
and soz for the english but the dutch schools failed on me
( thank god for word )

Different Mouse Cursor
Is there a way to change the mouse cursor ondifferent occasion using the default pointer?
Like for a draggable object, when we rollover it, we can see a palm curson, and when we click and drag it we can see a drag cursor.

? Eye Following (looking At) Mouse Cursor ?
Hello!

I can't seem to solve this one at all:
I've made an image with an eye in photoshop which I'd like to use as an "enter page" on my band's website.
It would be pretty cool if the eye would look at the mouse cursor all the time, so it should follow the direction when you move the mouse.
I was thinking that using two image layers could be the base of animating this: one layer for the eyeball itself which can move behind the "skin" in the larger image. If i move the eyeball layer behind the skin layer in photoshop, it looks ok.

The problem is that I don't have a clue about how to do this in Flash (I use Flash 5) Could anyone help me out about this?

PS: can I save the skin layer as a file with transparency that can be used in Flash? I guess this is essential to be able to see the lower eyeball layer...

THANX!

Mouse Cursor Changes
In flash 5.0 is there any way to change the mouse to a standard windows or Mac mouse cursor.  When u define a symbol as a button, a new cursor of a pointing hand occurs.  Is there any way to get that pointing hand cursor for a movie clip through actionscript?

Mouse Cursor And Pop Up Windows
I am having a proplem with my mouse cursor. It go's behind my pop up windows after i reopen them. Here is a link so you can test it to see what i mean. http://3dwarptdesign.50megs.com/help.swf

Changing My Mouse Cursor
Hi folks,

I have a button on the current scene and I don't want my mouse cursor to change from the simple arrow to the hand cursor when moving over the button. Is there any way to solve this problem?

Thanx in advance,
Zoo_Mann

Mouse Cursor Transparency
I have a custom mouse cursor that is on a white box approx. 36x36 I would like to know how I could just have the cursor show and not the box that surronds it. Is there a way I can fade out the background?

Mouse Cursor Problem...please Help
I want to change the mouse cursor using two movieclips.
One MC contains a vertical line witch can be dragged from left to right and another MC containing a dot witch can be dragged from top to bottom. So you get a crosshair effect with a dot, instead of a horizontal line.
It works perfect but the problem is....I can't click buttons anymore !

This are the actionscripts I use:
MC vertical line:

onClipEvent (mouseMove) {
Mouse.hide();
startDrag ("_root.line", true, 0, 250.5, 751,250.5);
}

MC dot:

onClipEvent (mouseMove) {
_root.dot._x = _root._xmouse;
_root.dot._y = _root._ymouse;
}

Can anyone help me ?


[Edited by MysteryMan-RLF on 10-14-2001 at 04:14 PM]

Copyright © 2005-08 www.BigResource.com, All rights reserved