mathus the seconth
Member
|
quote:
ORIGINAL: BeefStew Althorne, can I be added to the list of flash users? Also, how would I change he mouse back to default after it has already been custom? I know it seems basic, but I guess I never really put much thought into it XD. -Beefy edit: Btw, I looked through all the other Flash Q&A's and seeing the "Flsg and Schmoopy Epic Battles (Flsg saying schmoopy copied/pasted, then lying saying he didn't, then eragon saying we've been here before XD)", and my new fave number is -0, although this is random and no one cares, I personally find the previous Q&A's hilarious! LOL!!! Well, if you want to do that, you shouldn't use the code in the front page. I strongly recommend putting your code in a frame, rather than a Movie Clip. Your code will end up easier to find and manage, and you have more control over what's going on. With the following tutorial, you will end up with This. If you have Flash CS3, then you do not need to follow the following tutorial. Simply download This File, and be happy. (Although I would like you to read, so that you understand a bit more) First, go to "Insert > New Symbol", name it "mouse" (Disregard the quotes throughout the rest of this. I just put those so that you may see what to type easily.) then draw your custom mouse here. Once done, go back to "Scene 1" by pressing the button below the TimeLine. Right click on the mouse movie clip in the library, and select "Linkage...", and check off "Export For ActionScript", on "Identifier" put "mouse". now make 2 buttons on the stage, one with an Instance Name of "cus" (As in "Custom"), and one with "def" (As in "Default"). After that, select the first frame of your movie, and dump the following code there.
_root.cus.onRelease = function() {
Mouse.hide();
t = _root.attachMovie("mouse", "mouse1", 1);
t._x = _root._xmouse;
t._y = _root._ymouse;
t.onMouseMove = function() {
this._x = _root._xmouse;
this._y = _root._ymouse;
};
};
_root.def.onRelease = function() {
Mouse.show();
mouse1.removeMovieClip();
}; You now have a working "Mouse Switcher". Hope you enjoyed.
< Message edited by mathus the seconth -- 4/17/2008 23:52:47 >
|