views:

6

answers:

1

In Flex, how to put some component ( like canvas ) appear at the center of the screen. ( even if there is scroll, it should be displayed at the center of the current view).

+1  A: 

The PopUpManager's centerPopUp will do this easy, if that is what you're after.

But, if you want to display something in the center of a container that is a bit different. In that sitaution, you'll probably either have to write your own positioning code (in updateDisplayList() ) to center the component and position the others.

www.Flextras.com