>private function updateCompositionShapes():void
>               {
>                       for each (var controller:ContainerController in 
> controller)
>                               controller.updateCompositionShapes(); 
>               }

Hmm. That's fun. It will end up doing nothing. Since the scope of controller 
isn't specified, the compiler will resolve both of those references to the same 
local variable and hoist it to the top of the function. So, when it gets to the 
first line of the loop, 'controller' will be undefined and the loop will never 
execute.

It would, however, work if it were rewritten as:

private function updateCompositionShapes():void {
        for each (var controller:ContainerController in this.controller)
                controller.updateCompositionShapes(); 
}

(Assuming controller is actually in the this scope, I didn't look)

Mike

Reply via email to