By a quick look, it looks like you're creating the new nam MC on the same
depth (0) every time, which replaces the previous clip (and the clip you've
attached to it). 
/David Skoglund

-----Ursprungligt meddelande-----
Från: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] För Monicque Sharman
Skickat: den 23 februari 2006 01:41
Till: flashcoders@chattyfig.figleaf.com
Ämne: [Flashcoders] dragging multiple movieclips

Hi, I am a newbie, and I have been fiddling with this problem for days now..

. If anyone could help, I would really appreciate it. 
I have a comboBox, and when an item from the comboBox is chosen, I'd like a 
matching item (movie clip) to show up in an area, and then be able to be 
dragged to another area. At present, I get the movie clips to show up, then 
I can drag them, but they disappear as soon as the next item from the combo 
box is shown. I've changed depths of movieClip, names of movie clip 
instances (including dynamic names), duplicating the clip, etc. I've 
searched and searched the web, But nothing seems to work. Here is the code 
in the frame where the combo box is located: 
 
 
_global._count=0; 
 
form = new Object(); 
form.change = function (evt){ 
 
var item=evt.target.value; 
_count++; 
 
createEmptyMovieClip("nam",0); 
 
nam.attachMovie(item,"item",_count); 
nam._x=432; 
nam._y=194; 
 
nam.onMouseDown=function() { 
this.startDrag(); 
_global.selcom=this; 
} 
nam.onMouseUp=function() { 
this.visible=true; 
this.stopDrag(); 
} 
} 
chooser.addEventListener("change", form); 
 
 
Even if someone could point me to a tutorial where it shows how to drag and 
drop multiple movieclips that are created when something else occurs (like a

change on a combo box like I have above)? 
Thanks heaps, 
Monicque. 
 
 
 
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.0.0/266 - Release Date: 2006-02-21
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.0.0/266 - Release Date: 2006-02-21
 

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to