I have a mobile app that has several different components that are displayed in various states of the app. So that I can get the app to look right on every device, when a state is entered and the component created, I set up the dimensions of the various buttons and textInputs and lists once the creationComplete fires. The problem is that the first time the component is created, there is a little "dancing" that goes on while the objects are sized and positioned, the component does not just enter it's state fully formed. It only lasts a frame or two, but is very noticeable and looks unprofessional. The component is based on a Group. I have tried setting the alpha property for the group to 0, sizing and positioning all of the objects in the component, and then setting the alpha for the group back to 1. No joy. I even tried setting the alpha of the main group to 0, sizing and position all of the objects in the component, and then setting the alpha for the group back to 1 using callLater. Again, no joy.
Any thoughts?? <?xml version="1.0" encoding="utf-8"?> <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:ns="http://flex.apache.org/experimental/ns" creationComplete="sizeComponent(event)" xmlns:fxgAssets="fxgAssets.*" alpha="0"> <fx:Script> </fx:Script> </s:Group> -- View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Changing-a-Components-Visibility-tp15334.html Sent from the Apache Flex Users mailing list archive at Nabble.com.
