I guess you have to do BorderContainer.addChildAt(menu,0);
that was not my question at all. My problem is not adding a Menu component to a BorderContainer.
In order for the Menu to be able to be displayed in the BorderContainer , I need to call the Menu.show() method.
In order to do that i need to first 1) Add the Menu to the BorderContainer , 2) call the show() method.
So I need to use the BorderContainer.getElementAt() method to get a reference to the Menu I just added as a Child and then call its show() method.
The problem is that BorderContainer.getElementAt() returns an IVisualElement type, and I want to cast that to a Menu type so that I can call the show() method.
Does anyone have an answer for this?
In GENERAL how do you cast the returned IVisualElement type to the type of the actual element that is being returned?
I tried this casting that you did and I get the same exact compilation problem:
1061: Call to a possibly undefined method show through a reference with static type mx.core:IVisualElement. CSLiveDashBoard.mxml /CSLiveDashBoard/src line 39 Flex Problem
The Flex team is on the third floor on the side facing 7th ave. Go talk to
anybody up there (find Peter DeHaan on the map). I'm not in SF.