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.
_______________________________________________
[email protected]
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