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).
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.