Custom Cursor AND Drag And Drop
Hello, I am creating a simple swf for end users who are new to Microsoft Office. I am using Flash Professional 8. The user must grab an Excel menu and drag it to a new location and the cursor must change to the Move cursor. I can create a custom cursor and I can create the drag and drop; but I cannot get them to work together. I've checked the forums and the tutorials, but I cannot find how to get these two behaviors to work together.
Here is the drag and drop code (on an actions layer)
//To get it to work in Captivate
function onEnterFrame() { this._parent._parent._parent.rdcmndPause = 1; } //Quite frankly, not clear what this does, but someone told me to add it.
onMouseMove = function(){ updateAfterEvent(); }
// allow the movieClip to follow the mouse cursor; but not working so I'm sure I did something wrong--although no error appears
startDrag(moveTool_mc, true);
//Drag and drop actions that work
this.movingMenu_mc.onPress = function () { startDrag (this, true); reply_txt.text=" "; } this.movingMenu_mc.onRelease = function() { stopDrag(); if (eval(this._droptarget) == targetArea_mc) { reply_txt.text="Yes, that's right."; this._alpha=0; targetArea_mc._alpha=100; } else{ reply_txt.text="No, keep trying."; this._alpha=100; targetArea_mc._alpha=0; } movingMenu_mc.onReleaseOutside = function(){ this.stopDrag(); }
}
I thinkI have to add the code for the custom cursor a different layer for the cursor movie clip; but do I need to reference it somehow from this layer? If so how?
Here is the code for the cursor (on cursor layer, under actions layer) onClipEvent(load) { Mouse.hide(); this.startDrag(); }
This is my first week with ActionScript, so please forgive any glaring errors.
Kim
ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 04-13-2007, 02:55 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Drag MC With Custom Cursor?
In the beginning of the movie, a custom cursor is replaced by the normal one using the following code:
Code:
_root.cursor.swapDepths(1000);
startDrag("_root.cursor", true);
Mouse.hide();
Now, I also want a draggable movie clip as well. However, I find that once I start dragging the movie, the cursor does not operate anymore. This is that code I'm using to drag the movie clip:
Code:
on (press) {
startDrag(getProperty(_x, _y));
}
on (release) {
stopDrag();
startDrag("_root.cursor", true);
}
The best I could do was start up the cursor again AFTER the movie clip was let go of by adding the startDrag of the cursor on release. It's just that the cursor doesn't follow when it's being dragged.. it just sticks there until I'm done. Is it possible to drag BOTH of these movie clips at the same time? Is there another way to code this so that it'll work? I'd really appreciate your help... Thanks!
Custom Drag Cursor
Anybody know how to get a PDF style hand Cursor? This that change (close) to drag...
Custom Cursor + Drag + Snap=help Me
Hi guys,
How can i create a custom cursor and have another mc also that will be draggable. I would also have to detect if the icon is dragged over another mc and snap it into place.
it works if i don't have a custom cursor...
functions used for drag/drop/snap into place are
1)_droptarget
2)start drag
3)stop drag
code used for custom cursor is
onClipEvent (load) {
Mouse.hide();
}
onClipEvent (mouseMove) {
updateAfterEvent();
_x = _parent._xmouse;
_y = _parent._ymouse;
}
*****
Is my custom cursor mc interefering with the _droptarget function? How can i solve it..is there a workaround . I hope i have managed to state my problem clearly.
cheers
mayavi
Custom Cursor On Mouseover Without Drag?
I'm looking to create a custom cursor without using the drag function - I use drag funtions on my scrollbars. I only want the custom cursor to appear on roll over.
I tried to get around the problem by applying the drag funtion to the button alone - on my most recent attempt - however the cursor appears in another area of the movie for a split second before it centers over the mouse position, which is just naff.
Can anyone suggest a better method?
Here is the script I am using on my buttons:
on (rollOver) {
bounce = false;
xscale = Number(xscale*2);
yscale = Number(yscale*2);
_root.homeent.home.gotoAndStop(2);
startDrag("_root.newCursor", true);
Mouse.hide();
setProperty("_root.newCursor", _visible, true);
}
on (rollOut) {
bounce = false;
xscale = Number(100);
yscale = Number(100);
_root.homeent.home.gotoAndStop(1);
stopDrag();
Mouse.show();
setProperty("_root.newCursor", _visible, false);
}
on (release) {
loadMovieNum ("main.swf", 1);
_root.homeent.home.gotoAndPlay(3);
}
Ankthay Ouyay
Custom Cursor Icon Cant Drag
I am having the normal cursor to be replaced by an image. I did this by having a movie clip to startdrag when it loads. to prevent users from right clicking the movie to show the normal windows cursor, i had Mouse.hide() in the cursor image's movieclip's enterframe. the cursor did work properly.
but when i have something which needs the cursor to drag, like a volume slider button, the cursor doesnt work.
i realise that if the slider button is too small, the image cursor could not drag it. after i enlarge the slider button a little more, the slider can be drag. however, when i am dragging, the image cursor will stop at the position and my cursor will disappear while the slider is dragged. after i release the slider, the cursor will continue to be hidden while the custom image of the cursor will stay at the position where i dragged the slider.
if i were to disable the custom cursor image, everything works perfectly fine. so how do i make it work properly even with the cursor as another image?
thanks
Custom Cursor Icon Cant Drag
I am having the normal cursor to be replaced by an image. I did this by having a movie clip to startdrag when it loads. to prevent users from right clicking the movie to show the normal windows cursor, i had Mouse.hide() in the cursor image's movieclip's enterframe. the cursor did work properly.
but when i have something which needs the cursor to drag, like a volume slider button, the cursor doesnt work.
i realise that if the slider button is too small, the image cursor could not drag it. after i enlarge the slider button a little more, the slider can be drag. however, when i am dragging, the image cursor will stop at the position and my cursor will disappear while the slider is dragged. after i release the slider, the cursor will continue to be hidden while the custom image of the cursor will stay at the position where i dragged the slider.
if i were to disable the custom cursor image, everything works perfectly fine. so how do i make it work properly even with the cursor as another image?
thanks
Cursor And Drag And Drop
I made this really neat Drag and Drop clothing program and changed the cursor using;
Mouse.hide();
_root.attachMovie("Pointer", "Pointer", 10000000);
"Pointer" being a Movieclip linked in the Library called Pointer.
When I went to put the Drag and Drop script on;
on (press) {
startDrag ("");
}
on (release) {
stopDrag ();
}
I was not able to move the item on the desktop anymore. Commenting out the cursor script, I was then able to move the item. I tried various things like putting a button in the movieclip which had the Drag and drop script, but that didn't seem to work.
I figure because the default cursor has stages, for instance pointing arrow and open hand, that the default cursor should be thought as like a button. Could it be possibly that I have to make 'my' pointer a button (with stages)? But then, if that was it. How to apply that or does the movieclip "Pointer", with button inside, just get treated like a button?
Any suggestions please let me know.
Thank you.
Custom Curser+Drag And Drop
OK, I am pretty new to flash so I've been copying and pastng codes, learning along the way. I found a tut. for a custom curser and dragging and dropping, when combined it doesn't work properlly, when you go to drag something the curser gets stuck and you then use an invisible curser and the cutom cyrser just sits there doing nothing, any help appreciated
Here is the current code:
Mouse.hide()
startDrag(cursornew,true)
Anything I should add to that?
Drag And Drop Behavior For Custom Components
How i can reproduce an drag and drop efect for my component, with move of component. For moment i have this code.
Code:
var myPanel:myComp = new myComp;
function dragStart(event:MouseEvent):void{
var dragInitiator:myComp = event.currentTarget as myComp;
var dragSource:DragSource = new DragSource();
DragManager.doDrag(dragInitiator, dragSource, event);
}
function dragEnd(event:DragEvent):void{
var dropTarget:Canvas=event.currentTarget as Canvas;
DragManager.acceptDragDrop(dropTarget);
}
myPanel.addEventListener(MouseEvent.MOUSE_MOVE,dragStart);
canvas1.addEventListener(DragEvent.DRAG_ENTER,dragEnd);
When release mouse button, myPanel is not moved to the new location. How can do that?
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!
Custom Cursor + Custom Scrollbar = Problem
Ok, this is the thing: I made a scrollbar in flash, just like I made a cursor. the cursor only works when I set the settings to flash < 6 and as soon as I use the scrollbar while also using the cursor, it stops working. i suck at AS-ing and any help would be greatly appreciated.
~YF220
PS: .fla included.
Drag Abd Drop, Rollover When Drag Is Over Drop Target?
Hi, im using Flash MX 2004.
I am building a drag and drop, and I have a MC that can be dragged around the stage. The trouble im having is trying to make the drop location do something when i drag the MC over/off it.
I have the following code which works.
objectToDrag.onMouseMove = function() {
if ((objectToDrag.hitTest(dropper)) && (component._beingDragged == true)) {
dropper._alpha = 50;
temp++;
trace("working"+temp);
}
}
This will make the clip i am dragging the draggable MC over change alpha, but for the life of me I cant figure out how to get the alpha to change BACK, after the draggable MC is taken away from the 'dropper'.
Is there a better way that hitTest??
Cheerz,
Dwayne
Drag And Drop MC, Involves Polygonal Boundary, Drop Into Trash.
Hello. This is my desperate problem:
I am creating a circuit diagram designer.
There is basically instructions on the left, in a scrolling textbox (taken care of) and above that a rectangle with a bunch of components in it.
You need to be able to drag the circuit part from the side bar (a duplicate, so that the original remains in the same spot), and to a square on the grid on the stage of this program(Should snap to place...). Each clone should be able to be moved. Like so: You Press on a MC to drag it, the thing you are dragging to the stage is of course a clone. You release the mouse button, so it drops on the grid. It snaps into place. *Oops, you made a mistake. You press on it again, it is draged by your mouse to another square, and does not make a clone. *mind Changes... I dont want to use this one any more. You press on the MC, drag it to a bin which animates to show you the MC is being dragged over it. You release, the MC in question is deleted/removed...
You need to be able to rotate circuit parts by clicking on it so that it highlights, then pressing space bar.
It must also be possible to delete a duplicate by dragging it to the trash (an image/ MC), and last but not least, it is required to save the contents of the stage, or print them off.
Please note that to print it off, there are 2 input boxes outside the stage. One for the title, and one for the Users' Name. When they click on the print button, the two dynamic text fields must retrieve the values from the box outside of the programs' stage.
One Last detail: The cloned objects to be dragged around net to be in a six co-ordinate polygonal boundary, so that no-one can place any objects outside of the stage.
If anyone can help me, i would greatly appriciate it. I need to get this done asap. The graphics have been taken care of, it is just the coding to be done now. HELP, HELP PLEASE!
Thanks - Matt K
(1)drag Drop In 3 (2)drag Dropin 3 ...print 3 Contents (1)+(2)
i want to do the following.
drag (dynamic text file link)1 of choice of x text file links
into an area where all text file links can then be printed..(the text file itself)
[1] [2] [3] [4] [5]...
(basket)
drag drop [1] then [2] then [3] then [4] into (basket)
then print textfiles related to [1] [2] [3] [4]
if sombody could point me to a good tutorial or help me on my way?
thanx
Drag&Drop Duplicate Movie With Drop Target
Hi There...
I'm creating a game where people can design their own cell phone by adding diamonds to it, a "Bling Phone" if you will. You will be able to add 4 types of diamonds to it, change the phones skin, add music to it, give it a name etc etc
I've got it to a stage where it when you click on a diamond(mc) on the stage it duplicates a hidden diamond(mc with a button inside) off stage and you can drag it around etc and then click save. Theres a script which grabs the instance name, x and y position of every diamond on the stage and stores it into a multi dimensional array which will be fed into a mysql database for retreival purposes at a later date.
Now my problem is i would like to be able to use the phone(mc) as a drop target but i'm not sure where to put the droptarget script. does it go on the original MC diamond or the duplicated mc diamond with the button inside it ?
Once a diamond has been dropped onto the phone i would also like it if the user then drags the diamond off the phone it gets deleted. I think i've got it half working but my variables which keep track how many diamonds are on stage dont appear to be updating.
I've attached the .fla file to this post if some is interested in taking a look and helping me out. The droptarget script is only on the blue diamond so far.
Any help would be much appreciated.
Thanks
Rob
Drag And Drop - Multiple MC's On To A Single Drop Target
Hi All
I am struggling with a drag and drop excercise.
I have 15 movie clips that need to be dragged over a single drop target in a specific order. i.e 1,2,3,4, when the correct movie clip is dragged to the drop target a movie within the drop target needs to advance a single frame to display the result of the correct movie clip being dragged over the drop target.
Would I be correct in thinking I need to use some kind of array to compare the clip that is being dragged to the frame position of the drop target?
I have the bones of this working and need advice / help on getting the clips to work in the specific order required. I can post my code if needed.
Thanks in advance.
btw - am using Flash MX 2004 Professional
How To Make A Drag'n'drop Change Mid Drag?
Help! I already know the script to make a Movie Clip drag and droppable.
But how do I make it switch to a different Movie Clip in the middle of being dragged?
Please please help.
[fmx] Drag And Drop With Multiple Drop Locations
Hi
I am trying to make a draggable object have two drop locations, but it will still only drop to one. Please if anyone can help me or notice my mistake it would be really appreciated.
on (release) {
if (_root.DragMotor._droptarget == "/Socket2") {
_root.DragMotor._x = _root.Socket1._x;
_root.DragMotor._y = _root.Socket1._y;
_root.CheckMotorDrop();
} else {
_root.MotorDropped = 0;
}
if (_root.DragMotor._droptarget == "/Socket1") {
_root.DragMotor._x = _root.Socket2._x;
_root.DragMotor._y = _root.Socket2._y;
_root.CheckMotorDrop();
} else {
_root.MotorDropped = 0;
}
function CheckMotorDrop () {
//set the speech bubble to give information
_root.txtSpeech = "You have added a motor to the circuit.";
setProperty(_root.DragMotor, _width, 55);
setProperty(_root.DragMotor, _height, 55);
_root.MotorPowered = 1;
_root.DragMotor.play();
_root.MotorDropped = 1;
}
Thanks for your time, Matt.
Drag And Drop With Additional Drop Area
Hi there i have a little project on at the moment, an educational game for children, where items need to be dragged from one position to another, but with the possibility of being dragged to a seperate holding area first, before being dragged to their final resting area.
i have this code which deals with a straight 'a to b' drag and drop function:
Code:
setProperty(_root.boing,_visible,false);
function dragSetup(clip, targ) {
clip.onPress = function() {
startDrag(this);
this.beingDragged=true;
};
clip.onRelease = clip.onReleaseOutside=function () {
stopDrag();
this.beingDragged=false;
if (eval(this._droptarget) == targ) {
this.onTarget = true;
_root.targ.gotoAndStop(2);
} else {
this.onTarget = false;
_root.targ.gotoAndStop(1);
}
};
//the variables below will store the clips starting position
clip.myHomeX = clip._x;
clip.myHomeY = clip._y;
//the variables below will store the clips end position
clip.myFinalX = targ._x;
clip.myFinalY = targ._y;
clip.onEnterFrame = function() {
//all these actions basically just say "if the mouse is up (in other words - the clip is not being dragged)
// then move the MC back to its original starting point (with a smooth motion)"
if (!this.beingDragged && !this.onTarget) {
this._x -= (this._x-this.myHomeX)/5;
this._y -= (this._y-this.myHomeY)/5;
//if the circle is dropped on any part of the target it slides to the center of the target
} else if (!this.beingDragged && this.onTarget) {
this._x -= (this._x-this.myFinalX)/5;
this._y -= (this._y-this.myFinalY)/5;
setProperty(_root.boing,_visible,true);
}
};
}
dragSetup(circle_mc,targetCircle);
dragSetup(circle2_mc,targetCircle2);
dragSetup(circle3_mc,targetCircle3);
which i have then tried to adapt to 'a to b possibly via c':
Code:
function dragSetup(clip, targ, drop) {
clip.onPress = function() {
startDrag(this);
this.beingDragged = true;
};
clip.onRelease = clip.onReleaseOutside=function () {
stopDrag();
this.beingDragged = false;
if (eval(this._droptarget) == targ) {
this.onTarget = true;
this.onDrop = false;
_root.targ.gotoAndStop(2);
} else if (eval(this._droptarget) == drop) {
this.onDrop = true;
this.onTarget = false;
_root.targ.gotoAndStop(1);
} else {
this.onTarget = false;
this.onDrop = false;
_root.targ.gotoAndStop(1);
}
};
//the variables below will store the clips starting position
clip.myHomeX = clip._x;
clip.myHomeY = clip._y;
//the variables below will store the clips end position
clip.myFinalX = targ._x;
clip.myFinalY = targ._y;
//the variables below will store the clips end position
clip.myDropX = drop._x;
clip.myDropY = drop._y;
clip.onEnterFrame = function() {
//all these actions basically just say "if the mouse is up (in other words - the clip is not being dragged)
// then move the MC back to its original starting point (with a smooth motion)"
if (!this.beingDragged && !this.onTarget && !this.onTarget) {
this._x -= (this._x-this.myHomeX)/5;
this._y -= (this._y-this.myHomeY)/5;
trace("didn't drag anywhere");
//if the circle is dropped on any part of the target it slides to the center of the target
} else if (!this.beingDragged && !this.onDrop && this.onTarget) {
this._x -= (this._x-this.myFinalX)/5;
this._y -= (this._y-this.myFinalY)/5;
trace("correct!");
} else if (!this.beingDragged && !this.onTarget && this.onDrop) {
this._x -= (this._x-this.myDropX)/5;
this._y -= (this._y-this.myDropY)/5;
trace("teacher drop area");
}
};
}
dragSetup(circle_mc, targetCircle, dropPlace);
dragSetup(circle2_mc, targetCircle2, dropPlace);
dragSetup(circle3_mc, targetCircle3, dropPlace);
any ideas where i'm going wrong? it looks right to me but only ever seems to work when you drag 'a to b'
thanks,
dave.
Drag And Drop - When Drop Targets Overlap
Hi,
Please see
http://www.paraminionstudios.com/dump/PleaseHelp.zip for the files I'm requestiong help on (upload tool is not working).
Drag and drop the power generator "icons" on the left of the screen into the designated areas in the 3d scene to "install" power generators along the side of the building.
I have 4 designated regions in a 3d rendered scene. there are 4 dragable power generator "icons" on the far left of the screen. When the generator icons are dragged and dropped upon one of the 4 targets, the target mc advances to frame 2 of the target mc, and the generator icon disappears (actually the generator icon mcs simply advance to frame 2 of the mc.. a blank kframe). Frame 2 of each of the targets contains a small graphic of a generator that fits the perspective of the 3d scene.
my problem here is that my target MCs overlap slightly. This is causing some issues. if you have already "installed" generator 1, and you then go to drag another icon just below target1, flash is getting confused because of the overlapping. Is it possible to change the instance name of the target after dropping a generator icon on the target so that the script doesn't get confused? the layer order doesn't seem to have any bearing on anything here as I had hoped.
The file is located (upload tool isn't working) at:
http://www.paraminionstudios.com/dump/PleaseHelp.zip
On "vacation", working for a client. never fun.
CUSTOM CURSOR
Hi again FK. I need help with producing a customised cursor in Flash4. I have the necessary artwork in flash 4 but i don't know how to turn it into a cursor easily.
Muchos helpos would be appreciated... Thanx peeps I knew I could rely on u guys/gals.
_____________________________
Eggman sez 'Stay In School'
Custom Cursor
ok, i have a flash site with a custom cursor that i want to fade out when the mouse leaves the borders of the window that the flash movie is in. i have the animation set to fade out, all i need is the code to place that will tell the cursor mc to go to that fadeout animation when it detects that the mouse is out of the window. anyone out there wanna help me out???
thanks in advance
mr nix
Custom Cursor
Is there a way that i can create a custom cursor that acrtivates on button Rollover. Tricky Part is:
The button is an alpha masked mover from affter-effects taht carries transparency.
Any help would be great.
_drewf
Custom Cursor
hey there, i need a set of lamest terms instructions or tutorial to make a custom cursor for my site. im only a newbie so could it please be easy to understand? thanks in advance.
Custom Cursor
I have created a custom cursor for a website. The problem is that the cursor appears to go underneath the buttons. I have tried rearranging the layers but that does not work.
Any suggestions?
Also does anyone know if you can have the same custom cursor appear in the website if part of it was made in dreamweaver. I have another site that just the intro is in flash and the rest in dreamweaver and I want the custom cursor to appear throughout the site.
Thanks in advance for the advice
Tazmania
More About Custom Cursor...
Please tell me actionscript for my custom cursor, who would change size or colour when I roll on buttons./Just script for that colour or size changing/
Custom Cursor
Hey guys
Have a little problem
Am making this little movie and have created a custom cursor, but with this custom cursor i want to pick another MC up and drap it, which is fine, but when i do it drops the cursor. Is there away to have the cursor remain draging and still be able to drag the other MC?
Regards
Steve
Custom Cursor And...
hey im really startn to get mad lol 1.how do u make animation inside a buton for example when u click i guy he starts to dance or somthn like that
2.and how do u make a custom cursor
pleez write 1 or 2 before your answer
Custom Cursor
I created a custom cursor in Flash MX & the problem I am having is when you go in any direction to the ends of the sides the cursor cuts off. Does anyone know of a way to fix that. Listed below is the code that I am using.
Spirit Beanies click
Any help would be appreciated.
Thanks
onClipEvent (load) {
Mouse.hide();
startDrag("", true);
}
Custom Cursor
here's the deal:
in director you can replace the arrow-cursor with a hand (or any other default cursors of windows) whenever it rolls over an object. you can also make your own - saved as two 8-bit bmp's (one as it's supposed to look and the other as a mask).
can this be done in flash. the thing is; i don't want the cursor to depend on what framerate (12 in this case) the movie is. there's some sort of script to prevent this though (something about "function"), but that's all i know.
by the way;
can you only make hittest-areas as squares...? that seems rather boring...
/bensa
Custom Cursor
I have made a custom cursor for my current project. I am wanting the cursor to "move" or play a short movie when the cursor clicks a button. To further explain it, I have a set of water glasses as the background. Each glass is a button. When the button is pressed, it plays a sound on release. My cursor is a spoon. When I press on of the glasses, I want the spoon to move as if it is tapping the glass. I have a small movie made of this. Is it possible to do this??? Please help!
Custom Cursor.
Hi,
I am having a problem with a cursor that I built I can get it to work with one exception. I have draggable windows in my project and when ever I drag them the cursor stops working. Why and how can I fix this problem.
Oh and what I am doing is loading the cursor in a higher level than everything else. I am not sure if this method is the best but it is the only way I can get it to show up over certain graphics. Any help would be awesome.
Custom Cursor
k, im not sure how to explain this, i want a custom cursor that when u click nothing it changes to one graphic, and when u do click something(a button) it changes to random graphics other than the first(and the normal)
maybe the attachment will better explain better...
how do i do this?
Custom Cursor
k, im not sure how to explain this, i want a custom cursor that when u click nothing it changes to one graphic, and when u do click something(a button) it changes to random graphics other than the first(and the normal)
maybe the attachment will better explain better...
how do i do this?
Custom Cursor
I used to know how to make a custom cursor but I forgot now. Can anyone refresh my memory? I know it has something to do with dragging a clip event or something but I am not familiar with that much AS. If anyone could give me the AS that'd be cool. Thanks!
Custom Cursor
Hi, can someone please tell me how to make a custom cursor??
i want a hand to be the cursor instead of the arror inside my flash movie. im not sure if you understand whay im talking about... but i hope you do ^_____^;;
Thanks for your time
Custom Cursor
Hi
how would i create a custom cursor that stays the same when you roll over a button ?
Thanks again !!!!!
PLEASE HELP ME !
Custom Cursor Help
I want a custom cursor to animate when the mouse button is clicked.
I built the custom cursor animation using the timeline. I have a stop action on the first key frame so the animation will not start playing.
Right now I have this code to change my cursor. What do I have to do to make my timeline start playing on mouseDown?
Mouse.hide();
startDrag("cursor",true);
I tried this....
onClipEvent (mouseDown) {
this.gotoAndPlay();
}
where am i missing the boat?
Thanks!
Custom Cursor Anyone :(
Hi,
Anyone know a good tutorial on creating custom cursor that ONLY APPEARS when the mouse is over a certain area?
I've seen lot's of tutorials that show you how to create a custom cursor, but
the cursor sits there all the time. It's visible to the eye.
I'm trying to create one where you don't see the cursor until your mouse is over the area where it appears.
Custom Cursor Any One?
I'm trying to create a custom cursor that appears ONLY in a certain area of my flash movie.
I don't need this cursor to appear on the entire movie, I only need it to appear in a certain area of my flash movie. For example, maybe I have a simple little box in the center of my 800x600 flash movie, and I want the custom cursor to appear only in that little box.
Does anyone know how to create such a thing?
tg
Custom Cursor Help
Hi all,
After searching for a while and being the absolute novice i am, i can't find an answer. please help........
I created a quick dummy movie with start stop action. If you click on the movie it will stop, then click again it'll restart.
How can i change the cursor icon from a hand/arrow into something of my choosing????
sample movie here
ohh yeah, im using flash mx on a mac
Custom Cursor Help Please
Hi, Im trying to make a simple custom cursor work with a line drawing app, but I lose clicking fuctionality. this cursor is only to activate while over a certain section of my SWF so I did this
Code:
_root.screen_mc.onRollOver = function(){
Mouse.hide();
_root.pencil._alpha = 100;
_root.pencil.startDrag(true);
}
_root.screen_mc.onRollOut = function(){
Mouse.show();
_root.pencil._alpha = 0;
_root.pencil.stopDrag();
}
how can I do this and maitain the full capabilities of the mouse?
thanks in advance
Mark
Custom Cursor
Hi,
I'm making a photo gallery site. When the user scrolls over an image, I want the cursor to turn into an arrow that will advance to the next image.
I made a custom cursor, but I only want it to be activated when it's scrolling over the photo, not the entire site.
Here's my code:
onClipEvent(load)
{
Mouse.hide();
this.startDrag();
}
Thanks!
Custom Cursor
Hi,
I'm having trouble with a custom cursor that i made into an arrow.
It works, except it "flashes" on the very top left of the site when you enter the area where the cursor changes.
Any suggestions?
I posted my file:
go to FTP.fatcow.com
username and password: dianeco
Thanks!
[F5] Custom Cursor
Hay all,
I am actually building a flash game and using a custom cursor. It has to be published at v6 player.
There are mini movies that are loaded into it dynamically.
My problem is that my cursor doesn't show over top of the pieces that are loaded dynamically. How can I get my cursor to show or go to the highest depth?
Any help is much appreciated!
[F8] Custom Cursor
hi friends,
currently i am working in a flash website. in that, i have kept a small movieclip(news_mc) in the centre which can be dragged and dropped at any place of the file. while dragging the hand cursor should be replaced with the custom cursor(my_cursor) which i have created already.
could you pls help in this regard?
Custom Cursor
How do I create a custom cursor to appear when rolled over on hotspots but dissapear when not.
ex: ttp://www.yangtan.com/v01/flash.html
Custom Cursor
I've been trying to create a custom cursor. I've looked at two tutorials so far, and they all say to do the same thing. This is my script:
Code:
import flash.display.Sprite;
import flash.events.MouseEvent;
cursor_mc.startDrag(true);
Mouse.hide();
and this is my cursor:
(low quality because I had to copy paste to paint and save as bmp)
The cursor works fine, except when I try to click on a button or symbol. The button just randomly goes into "over" mode when the cursor is over it. When I try to click the buttons, nothing happens.
Anyone know how I can make a cursor that will actually click?
Thanks to all that help.
Custom Cursor Help
breakItUp_mc is the mc I wish to use as cursor. It has been exported for actionscript with the same name. Does it still need to be added to the stage?
Any help is, well. helpful....
Thanks...
stage.addEventListener(MouseEvent.MOUSE_MOVE, updateCursor);
Mouse.hide();
function updateCursor(event:MouseEvent):void {
breakItUp_mc.x = mouseX;
breakItUp_mc.y = mouseY;
}
yet I keep getting the error:
1119: Access of possibly undefined property x through a reference with static type Class.
|