Hi!
I have tried to combine two different drag and drop tutorials. The first one is the [SIZE=2][COLOR=Navy]"[FONT=Verdana]Dragging[/FONT][/COLOR][/SIZE] [FONT=Verdana][SIZE=4][COLOR=#003366][SIZE=2][COLOR=Black][COLOR=Navy]and Dropping Using Drop Targets"[/COLOR] from kirupa and the other is this one:
[/COLOR][/SIZE][/COLOR][/SIZE][/FONT]http://www.actionscript.org/forums/attachment.php3?attachmentid=8394&d=1085911945
[FONT=Verdana][SIZE=4][COLOR=#003366][SIZE=2][COLOR=Black][COLOR=Navy]
[COLOR=Black]The “drag_replace” file replace an object and goes back to it’s orginal position if another object is placed on it. So I tried to put this code on object called “one” [/COLOR][/COLOR][/COLOR][/SIZE][/COLOR][/SIZE][/FONT]after the “drag” code:
[FONT=Verdana][SIZE=4][COLOR=#003366][SIZE=2][COLOR=Black][COLOR=Navy][COLOR=Black]
[/COLOR][/COLOR][/COLOR][/SIZE][/COLOR][/SIZE][/FONT]
on (release) {
stopDrag();
if (_root.one._droptarget == "/greenHolder") {
_root.greenHolder.gotoandPlay("one");
}
}
This works but if you drop another object over “one”, let’s say “two”, it won’t go to framelabel “two” in the “greenHolder”.
So my question is how am I going to figure this out?
Here is my file:
http://www.nexters.se/drag_replace_test.fla
I will appreciate if anyone have any ideas![FONT=Verdana][SIZE=4][COLOR=#003366][SIZE=2][COLOR=Black]
[/COLOR][/SIZE][/COLOR][/SIZE][/FONT]