Re: [Flashcoders] remove a Dynamic dropDown menu problem

2007-05-21 Thread sebastian
hey John, send me your new code and I'll take a look today at some point - I think we may want to take this subject off [public] list though. with kind, seb. John Trentini wrote: Sebastian, I have tried implementing your idea but I don't seem to be able to create my dropdown menu any

Re: [Flashcoders] remove a Dynamic dropDown menu problem

2007-05-20 Thread sebastian
if instead of creating your items in the root, you created them in a MC, you can then just delete/unload the MC holder and then create a new one. That will instantly remove all the sub-movie clip/buttons. and, yes, you should try learning how to encapsulate your code in functions or, even

Re: [Flashcoders] remove a Dynamic dropDown menu problem

2007-05-20 Thread John Trentini
Thank you Sebastian, This questions would probably belong to the flashNewbie list but they have Jason there who advocates the use of 'Delegate. create' and sincerely that confuses the hell out of me and, at this stage I do not have the time to sit down and do any more learning than I am

Re: [Flashcoders] remove a Dynamic dropDown menu problem

2007-05-20 Thread sebastian
hi John, well you want to attach all the sub clips to the holder. so: var containerDepth:Number = 1; this.createEmptyMovieClip(container_mc, containerDepth,thisOne._x-100, 0, 130, 25); this.container_mc.createTextField(mySubText+i,this.getNextHighestDepth()); subBtn =

Re: [Flashcoders] remove a Dynamic dropDown menu problem

2007-05-20 Thread John Trentini
Hi Sebastian, Thanks for your feedback and code pointer. I will try writing the functions as you suggest. :) cheers JohnT sebastian wrote: hi John, well you want to attach all the sub clips to the holder. so: var containerDepth:Number = 1; this.createEmptyMovieClip(container_mc,

Re: [Flashcoders] remove a Dynamic dropDown menu problem

2007-05-20 Thread John Trentini
Sebastian, I have tried implementing your idea but I don't seem to be able to create my dropdown menu any longer. Only the last button is created and without the appropriate label but also at 0,0. Also, should I made the heigth of the container large enough to hold any number of buttons? At

[Flashcoders] remove a Dynamic dropDown menu problem

2007-05-19 Thread John Trentini
Hi flash coders, I have created a menu dynamically and then when clicking on any of the menu elements, I create a dynamic dropDown menu. All is well and working but I am having problems deleting the dropDown menu and all it elements when rolling over or clicking on a different menu element .