hey i want do a simple thing
i have a menu and want do someting like the top menu of kirupa site
an object following the mouse
how can i do that ?
hey i want do a simple thing
i have a menu and want do someting like the top menu of kirupa site
an object following the mouse
how can i do that ?
can anyone help me ?
eh,
MCName.startDrag();
or
mcname._y = _ymouse;
mcname._x = _xmouse;
^^ is AS2 : )
addEventListener(MouseEvent.MOUSE_MOVE, moveThing);
function moveThing(e:MouseEvent):void {
object.y = mouseY;
object.x = mouseX;
}
I always forget what forum I am on, sorry for that. I hate AS3
[quote=sekasi;2357490]^^ is AS2 : )
ActionScript Code:
[LEFT]addEventListener[COLOR=#000000]([/COLOR]MouseEvent.[COLOR=#000080]MOUSE_MOVE[/COLOR], moveThing[COLOR=#000000])[/COLOR];
[COLOR=#000000]function[/COLOR] moveThingCOLOR=#000000[/COLOR]:[COLOR=#0000FF]void[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#0000FF]object[/COLOR].[COLOR=#000080]y[/COLOR] = mouseY;
[COLOR=#0000FF]object[/COLOR].[COLOR=#000080]x[/COLOR] = mouseX;
[COLOR=#000000]}[/COLOR]
[/LEFT]
[/quote]
I has drag SimpleButton
http://www.dnadillo.dn.ua/fla/SimpleButton-drag.swf
http://www.dnadillo.dn.ua/fla/SimpleButton-drag.zip
That code is pretty buggy alex ;p
no, its not start drag… when i move the mouse the object move…
like the top menu of kirupa
startDrag will do that and it’s still in AS3:
http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/display/Sprite.html#startDrag()
thanks
other thing, how i can remove something on stage.
example: i have a menu where “bio” is open and i open “portfolio” but bio stays behind portfolio.
can i remove this doing the animation but removing ?
:: Copyright KIRUPA 2024 //--