This content has been marked as final. Show 4 replies
I probably wouldn't do it as a function, but rather...well there are probably a lot of things I would do differently there. But here is most likely what I would do.
Also if you do need to have the multiple if type of stuff, then I would use a switch statement:
// do something;
// do something else;
// and so on.
cool. thanks so much! as always, more than one way to skin a cat.
are there any performance issues when you attach and remove an mc versus attaching an mc, hiding it then showing it after the event?
thanks > mark
You know I don't know. If there are children clips inside of an attached movie their properties, events, etc won't be available until one frame has advanced.
Also in your example there would be a lot of code that needed to execute each time it was attached to place it. So I thought that was a bit "messy" and complex. I imagine there is a little memory overhead for having all six attached all the time. If these are little buttons or some such it probably isn't important. If these are giant 800 x 600 bitmaps that might be an issue. So ir really depends upon what you are doing!
Generally I don't like to attach and remove a lot of clips. But it all depends upon what is in your clips and what you are trying to do.