Loaded Module Dimensions - Width / Height
13 June 2008Ran across a problem regarding the display size of dynamically loaded modules today. The module was a subclass of ModuleLoader. The module would size to the minWidth / minHeight I had specified but would ignore width=”100%” for height=”100%”.
This Adobe Tech note states that your module should use ‘percentWidth’ and ‘percentHeight.’ I set that for the module and still no luck (probably because I subclassed ModuleLoader not Module for the time being).
What did work was to set the percentWidth / percentHeight in actionscript before I call addChild().
module.percentHeight = 100;
module.percentWidth = 100;
this.addChild(module);









