This content has been marked as final. Show 3 replies
How 'bout, rather than trying to center the app in Flex itself, use some CSS in the HTML template to center the EMBED/OBJECT tags.
Since the application is the root level, it's always going to appear at the relative coordinates of the EMBED tag (typically 0x0y). If you're bent on positioning/centering your entire UI in Flex alone, you're going to have to put it in a child container (like a canvas or panel or vbox) and position THAT. The drawback is that you're going to get Flex scrollbars rather than browser scrollbars.
Can't you just use <center></center> tags? Isn't the Flex object just dropped into an HTML/JSP/etc page?
I haven't messed with Flex in a browser much (more of an AIR user here), so nevermind if that's way off.
It's not working like that.