public var info:IModuleInfo;
public var customModule:ModuleLoader;
import spark.modules.ModuleLoader;
protected function hbx_creationCompleteHandler():void
{
isIPflag=true;
info =
ModuleManager.getModule( "Module.swf");
info.load();
customModule = new ModuleLoader;
var url1:String = "Module.swf";
customModule.loadModule(url1);
hbx.removeAllElements();
hbx.addElement(customModule);
}
<s:HGroup id="hbx"
height="100%"
width="100%" creationComplete="hbx_creationCompleteHandler()">
</s:HGroup>
No comments:
Post a Comment