Cparty
December 4th, 2005, 04:55 PM
I can't
really explain
it...
so..here
http://www.newgrounds.com/portal/view/225089
that's what i mean, i want to know how to do that lol
Long_Haired_Buddy
December 4th, 2005, 05:36 PM
This place is so
dead.
Oscar
December 4th, 2005, 06:30 PM
I'm a pretty shitty actionscripter so I don't think I can help
you with this hahe
Netrosis
December 4th, 2005, 06:52 PM
This
is in my Flash MX 2004, not sure about Flash
8.
startDrag(target,lockcenter,l,t,r,b);
Mouse.hide&#
40;)
stopDrag();
Mouse.show()
All code is
placed on the starting frame AS.
ok, so how does this all
work?
Create the MovieClip you want as your Cursor.
Give it an
Instance Name, I called mine mouse.
Now what do all the parts
mean?
target: this is the instance name, in my example,
"mouse"
lockcenter: true or false, True will lock the centre of the
movieclip, false will simply pickup the movieclip in relation to the cursor
when it started the drag, you would want this as true.
l,t,r,b: how
far left, top, right and below, the cursor can drag, from its current
location on the frame. You have to supply all 4 of these,
so if you
have a movieclip, place it in the topleft corner of your frame, using the
align buttons (default shortcut is [ctrl]+[K]) then, specify the
dimensions of your movie. If being the default, it should look similar
too:
startDrag("mouse",true,0,0,550,400)
I
t helpls. :)
the Mouse.hide() and Mouse.show() should be self
explanatory, they hide or show the cursor.
Now, for the whole effect
thingy. I remember reading up on how to do this somewhere.
On frame
one, I had this code:
startDrag("mouse", true);
var
dupname = "1";
nextFrame();
Frame
two,
dupname++;
mouse.duplicateMovieClip("mouse" + dupname,
dupname);
startDrag("mouse" + dupname,
true);
play();
frame
three,
dupname++;
mouse.duplicateMovieClip("mouse" + dupname,
dupname);
startDrag("mouse" + dupname,
true);
gotoAndPlay(2);
making sure an instance
of the original is still there.
Try to not put anything with an alpha
channel below 100%, this will cause your flash movie to slow down horribly!
*gasp*
I managed to recreate the catepillar cursor using this method,
and hope it helps. :)
edit:
Make sure inside your movieclip, it is
a few frames long, then on the last frame press f7, (blank keyframe) then add
the following ActionScript to that
frame:
stop();
That should also make it
look pretty! :)
Cparty
December 4th, 2005, 06:53 PM
Damn thanks lol
Oscar
December 4th, 2005, 07:05 PM
Netrosis is tha man! :D
Netrosis
December 4th, 2005, 07:21 PM
I hope
it all works out right.
I spent ages trying to find a way to delete
the movieclips, before realising it was unecessary.
nugget
December 5th, 2005, 12:49 AM
on(press){
play(); //OMFG
}
:shock:
Netrosis
December 5th, 2005, 11:55 AM
this.on(Release)
{
getURL("http://nugget.isgay.com",_blank);
//ROFLCOPTER!
}
JJ
December 5th, 2005, 08:23 PM
i dont pay much attention to cursors, there aweosme and all, but
im not ready. ill print it out JUST in case
Netrosis
December 9th, 2005, 09:57 AM
There's another command
that makes it follow the cursor at a certain speed but I've forgotten it.
Powered by vBulletin® Version 4.1.11 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.