Try this:vform[evt.target.instanceIndex].removeChild(_submod[i]);

On Sat, Sep 20, 2008 at 8:27 PM, urmissinlink <[EMAIL PROTECTED]> wrote:

>   hey guys,
> I have a nested repeater as seen below
>
> <mx:Repeater id="_rpModule" dataProvider="{A00Module}" >
> <mx:LinkButton id="_mod" label="{_rpModule.currentItem.label}"
> click="openModule(event)" icon="@Embed(source='img/Expand.png')"/>
> <mx:VBox paddingLeft="35" id="vform">
> <mx:Repeater id="_rpSubModule" dataProvider="{A00SubModule}"
> repeatEnd="populateSub(event);">
> <mx:LinkButton id="_submod"
> label="{_rpSubModule.currentItem.label}"/>
> </mx:Repeater>
> </mx:VBox>
> </mx:Repeater>
>
> I am running a loop at the RepeatEnd phase to delete the linkbuttons
> that I don't want, but they are not removing from the screen at all.
>
> here is the code to removeChild
>
> vform[evt.target.instanceIndex].removeChild(_submod
> [evt.target.instanceIndex][i]);
>
> What am i doing wrong?
>
> ohh i am in a private function as below
>
> private function populateSub(evt:Event):void{
> }
>
> thanks
>
>  
>



-- 
Haykel Ben Jemia

Allmas
Web & RIA Development
http://www.allmas-tn.com

Reply via email to