Skip to main content
Participant
April 20, 2006
Question

Flash drag and drop

  • April 20, 2006
  • 2 replies
  • 334 views
Hi

I am making an educational flash movie where I have six movieclips of small maps called(map1, map2.........map6). I want to do it so that after the user has dragged all of those into a box called "mapbox", all of them disappear and turn in to the big map.
I am just learning Flash and have already wasted alot of time on this. I appreciate if any of you could help.

Thanks in advance
Astara
This topic has been closed for replies.

2 replies

kglad
Community Expert
Community Expert
April 24, 2006
you're welcome.
kglad
Community Expert
Community Expert
April 20, 2006
in your onRelease handler check if your map has been dropped into mapbox, set a variable indicating it's been dropped into mapbox and check to see if all have been dropped into mapbox. if they've all ben dropped, display your large map.
Astara2Author
Participant
April 21, 2006
Hi
This is my code that doesn't work . By the way can you use an Array with onrelease? Because mine is complaining.
var my_array:Array = new Array();
my_array[0] = "map1";
my_array[1] = "map2";
my_array[2] = "map3";

for(i=0; i<my_array.length; i++){
myObj .onRelease.function(){
if(this.hitTest(mapbox)&& i>my_array.length)
gotoAndPlay(16);// where I have the big maps
}
};

tnx
Astara
kglad
Community Expert
Community Expert
April 21, 2006
you have a number of errors in logic and syntax. try: