When I deploy the app, everything works fine. Resizing the
window automatically resizes all the components and containers. But
when I dynamically set the percentWidth or percentHeight attributes
in actionscript, it doesn't quite work. It sets them correctly
initially, like the module loaders will set to 20/60/20 percent of
the container, but they won't resize along with it if I resize the
The loaded module is a place holder right now. It's just a
panel with a button.
Whats the difference between setting the percentWidth in
actionscript and setting it through the properties pane?
I've tried both of these methods:
I figured it out. I had a resize effect that proceeded the
value declarations. You can't use the resize effect to resize to a
percentage, so I had to resize to the current max width and height
and then set the percentages afterwards. The problem was the effect
would begin playing, then the percentages would set before the
effect was done playing, so the new values would overwrite the
values. I added an EFFECT_END event listener and had it launch a
new function to reset the values.