View Full Version : loading multiple movieclips from a combobox
clbeckman
05-31-2005, 07:48 PM
do you load multiple movie clips into a target from a combobox. i have tried but everytime i select something from the combobox to load it just replaces the old movieclip.
Gibberish
05-31-2005, 09:22 PM
you need to put it in a different depthcomponet.attachMovie("someMC",0);
componet.attachMovie("someMC",1);
Though now your problem is going to be that the two mc's are at the same x,y you will need to figure out where you want the mc's to follow the first one to be placed and set positions from there.
Example: say you wanted them right under each other.componet.attachMovie("someMC","someMC", 0);
componet.attachMovie("someOtherMC","someOtherMC", 1);
componet.someOtherMC._y = componet.someMC._height + 10; // 10 is padding
Of course you would probably want it to be dynamic but the basic theory is there.
clbeckman
06-01-2005, 02:54 PM
ok well i have this scripting to allow me to load different clips using the combobox
function myTest() {
loadMovie(Stuff.getSelectedItem().data, "container");
startDrag(Stuff.getSelectedItem().data);
}
so how would i allow this to load multiple clips without replacing one leaving them all on the screen. i also have them draggable so being placed over one another is not really a concern.
vBulletin® v3.7.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.