« Pipe Architecture - Understanding PureMVC Pipes »

Loaded Module Dimensions - Width / Height

13 June 2008

Ran 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);


Leave a reply

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word