So I admit I am from the HTML world and have been able to
dynamically control divs to make them visible and invisible, as
needed. How do you do that in Flex/Flash?
I have tried the "visible" attribute, but the component takes
up the same space when invisible leaving a big hole in the page --
very surprising. I have changed the height and width to zero (which
works) but have not been able to restore the size (since I want it
to be width=100% and it is expecting a number, not percentage.
In Flex, there is a separation between "is this component
visible" vs. "does this component take screen space." Similar to
the difference in CSS between "mydiv.style.visibility = 'hidden'"
and "mydiv.style.display = 'none'".
// make it invisible
mything.visible = false;
// make it not take up space onscreen
mything.includeInLayout = false;