Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
OliverW webforumsuser@macromedia.com #1
Can't remove movieclip with component
Hi all - I'd appreciate any help with the following situation:
I'm trying to attach movieclips based on choices made in a combobox. i.e. choice 1 attaches MC1, choice 2 attaches MC2 etc.
There can only be one of these movie clips attached at any one time, i.e. if I choose 1 and then 2, MC1 needs to disappear and be replaced with MC2.
To make things easy, I'm instantiating the clips with the same instance name "criteriaDetail".
Now to the problem:
I have a function that checks whether criteriaDetail exists, and if it does it removes it using removeMovieClip() and replaces it with attachMovieClip().
Only... the removeMovieClip doesn't work! It works fine if the clip is empty, or contains just a square or any other old object, but if it contains an FComboBox component, IT WILL NOT DIE!
Can anybody explain to me why this is, and how to get rid of a clip that contains a combo box?
Code for the function below:
<snip>
if(_root.criteriaDetail){
_root.criteriaDetail.removeMovieClip();
trace(_root.criteriaDetail._x)
}
_root.attachMovie(_root.criteriaChosen , "criteriaDetail", _root.LCounter +=1);
_root.criteriaDetail._x = 10;
_root.criteriaDetail._y = 70;
</snip>
Thanks,
Oliver
OliverW webforumsuser@macromedia.com Guest
-
Remove user list from Audio Conference component
Hi, I have a simpleconnect and Audioconference components and a logout button. I'm calling the components close functions into the logout button.... -
remove green line around list component
How can I remove the green line around flash object like buttons, text fields and data component I have a list component that keep on displaying... -
Creating a custom event in MovieClip component
I've got a MovieClip component that handles some client/server interaction using XML. It also contains some navigational stuff. I'd like to get it so... -
TextArea Component Embedded in MovieClip
I have a movie clip, myMovieClip that has a TextArea component, myTextArea embedded within it. I am attaching the myMovieClip as follows: ... -
a movieclip to control another movieclip???
Well, try to trace the _x coordinate or print it onto screen so you can see what it is. What is pc_move? If you want to move the clip, you must...



Reply With Quote

