I am new to modules, so not sure to understand what you wrote.

This is how I am using the module:

In main app:
<s:ModuleLoader id="sampleModuleLoader"  url="../SampleModule.swf"/>

The module itself is declared as follows:

SampleModule.mxml 
<s:Module>
 ...
</s:Module>

Then I have somewhere else a popup defined in the module
SamplePopup.mxml
<s:TitleWindow ...>
   <s:TextInput id="ti" />
</s:TitleWindow>

So what is moduleComponentId in this case ? 

Maurice 

-----Message d'origine-----
De : Mark Kessler [mailto:[email protected]] 
Envoyé : mardi 3 septembre 2013 01:21
À : Users@flex
Objet : Re: question on modules

Would something like either of the following have any effect on the your 
pathing for test purposes?

(parentApplication.moduleComponentId as
Modulename).ventana.variableName.text = "test";

or

(parentApplication.moduleComponentId as Object).ventana.variableName.text = 
"test";


-Mark

On Mon, Sep 2, 2013 at 6:56 PM, Michael Astudillo < 
[email protected]> wrote:

> Hi,
> When you try to access to a popup trougth a module first you create a 
> variable like TitleWindow and second assign the call at this, for example:
>
> public var ventana:TitleWindow = new TitleWindow(); function Sample() 
> {
>                ventana = 
> PopUpManager.createPopUp(this,**titleWindowSample,true)
> as TitleWindow;
>                 PopUpManager.centerPopUp(**ventana);
> }
>
> parentApplication.**moduleComponentId.ventana.**variableName.text = 
> "";
>
>

Reply via email to