Flex 4 is driving me bananas !
I have an application with a slider for resizing a YouTube video that I load with SWFLoader. While the video is resizing OK, the VBox (tried HBox and just about everything I could) the VBox refuses to center the video vertically. I have set verticalAlign to true. I have tried invalidateSize() and/or invalidateDisplayList() on the VBox and all the different types of containers that I have tried.
Another issue that is just plain bizarre is that application resize=onResize() seems to be fired just before the containers' sizes are changed. Is this done intentially or what? I have managed to gunk it together with setInterval() to delay it by 10 ms but BOY does it feel like a kluge.
Thanks for your help,
verticalAlign needs to be set to middle. horizontalAlign is set to center.
If this post answers your question or helps, please mark it as such. Thanks!
Adobe Flex Development and Support Services
OH, I have done all of that including setting those vertical/horizontalAlignCenter="0" (if I got them right by memory) but nothing helps.
What seems to be one of the contributing problems is that app level resize="onResize()" is firing just before the window resizes or at least the VGroup width/height values show the old values ...