thenamenottaken
02-26-2004, 02:57 PM
allright, pardon me if this is a bit simplistic, but i'm still not very good at actionscripting.
here's what i'm trying to do:
i have a series of movie clips displayed at the bottom of the window. when i drag and drop them on a target, it attaches a movie clip to that target and also displays some text in a listbox. if you click on the attached MC it removes it. what i want to do is have it where once you click on an attached MC, it also removes the corresponding text placed in the listbox.
the way i've attempted to do this so far is to make it where when the user attaches the movie, it assigns a value to a variable of 1. but if it has been removed, or was never attached in the first place it has a value of zero. therefore once you click to remove an item, it removes everything from the list box and only inserts text for items that have a value of one (that is, the MC's that are attached).
i have no idea what the correct way of doing this is. I cannot post the fla, but i am more than willing to post any portion of code that you'd like. please help before i have aneurism.
here's what i'm trying to do:
i have a series of movie clips displayed at the bottom of the window. when i drag and drop them on a target, it attaches a movie clip to that target and also displays some text in a listbox. if you click on the attached MC it removes it. what i want to do is have it where once you click on an attached MC, it also removes the corresponding text placed in the listbox.
the way i've attempted to do this so far is to make it where when the user attaches the movie, it assigns a value to a variable of 1. but if it has been removed, or was never attached in the first place it has a value of zero. therefore once you click to remove an item, it removes everything from the list box and only inserts text for items that have a value of one (that is, the MC's that are attached).
i have no idea what the correct way of doing this is. I cannot post the fla, but i am more than willing to post any portion of code that you'd like. please help before i have aneurism.