View Full Version : Drag & drop button, help
Hi everybody.
I am new in flash, just a simple question.
It is possible to drag & drop a button (I am in flash 5) ?
Thanks Rupa
JHallam
07-29-2003, 07:54 PM
Yes, it's possible, search the forum for drag & Drop ;)
Ahh, your in Flash 5, see me? I'm just above you, in MX, giv us a wave ;)
only joking, welcome to as.org :)
Ricod
07-29-2003, 07:56 PM
Hi Rupa !
Welcome to the board !
It is explained in this tutorial : http://www.actionscript.org/tutorials/beginner/drag-n-drop/index.shtml
Check out the tutorial section for a lot of information. :)
Hi, thanks for the replies,
sorry but already I checked the tutorial.
I made a drop&drag button, but i'd like that this button on release
will stop to drag and will gotoandPlay (myframe).
I succeded to make just a normal button (not dragable) or a dragable clip that don'go anywhere...:(
greetings Rupa
magicwand
07-30-2003, 11:29 AM
if you want help..post your code.
that way we can help you much better.
the code of the dragable clip is:
on (press) {
startDrag ("_root.flasher");
}
on (release) {
stopDrag ();
}
I'd like that on release it stop drag and then go to frame 2,
or that stop drag and clicking another time go to frame 2
thanks
Rupa
JHallam
07-30-2003, 02:34 PM
Ok...
on (press) {
startDrag ("_root.flasher");
}
on (release) {
stopDrag ();
gotoAndPlay(2)
}
?
thanks for the reply,
but the button still dosen't works.
For sure i make some stupid error:
I Frame: Label 1 , ActionScript : stop
1 graphic instance as backgorund
1 clip movie (name=flasher) with inside a button with the code you wrote:
on (press) {
startDrag ("_root.flasher");
}
on (release) {
stopDrag ();
gotoAndPlay(2)
}
II frame: Label 2 , ActionScript : stop
the same graphic instance of the first frame
another graphic instance and nothing more.
The result should be that moving the CM should appear the second image situated in frame 2
Thanks Rupa
Adrenaline
07-30-2003, 03:17 PM
so you want to goto frame 2 in the MAIN timeline.
use this:
on (press) {
startDrag ("_root.flasher");
}
on (release) {
stopDrag ();
_parent.gotoAndPlay(2)
}
Now it works,
thanks a lot
Rupa
Adrenaline
07-30-2003, 03:40 PM
happy to help, good luck
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.