[flexcoders] model locator population too late

2009-01-16 Thread dnk
Hi there,

I have an app that uses a model locator class.

Now I have a component that is passed in a reference to another  
component (A progress bar in my case).

Now my problem is that the component is being created prior to the  
model locator being populated with the reference to the progress bar.

So then obviously my component does not work as expected as it needs  
that reference.

I have no idea on how to get around this issue. I can't populate the  
model locator (manually) any earlier as the progress bar  has not yet  
been created.

Ideas?

d




Re: [flexcoders] model locator population too late

2009-01-16 Thread Paul Andrews
Surely the progress bar is bound to the model, not part of the model itself?

- Original Message - 
From: dnk d.k.emailli...@gmail.com
To: Flexcoder List flexcoders@yahoogroups.com
Sent: Friday, January 16, 2009 11:14 PM
Subject: [flexcoders] model locator population too late


 Hi there,

 I have an app that uses a model locator class.

 Now I have a component that is passed in a reference to another
 component (A progress bar in my case).

 Now my problem is that the component is being created prior to the
 model locator being populated with the reference to the progress bar.

 So then obviously my component does not work as expected as it needs
 that reference.

 I have no idea on how to get around this issue. I can't populate the
 model locator (manually) any earlier as the progress bar  has not yet
 been created.

 Ideas?

 d



 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location: 
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups 
 Links






Re: [flexcoders] model locator population too late

2009-01-16 Thread dnk
It is. As there are other aspects of the app that use the reference in  
the model successfully.

I just traced out and found out that at the time when i wanted to use  
it, that it is not yet populated.

d



On 16-Jan-09, at 3:14 PM, Paul Andrews wrote:

 Surely the progress bar is bound to the model, not part of the model  
 itself?

 - Original Message -
 From: dnk d.k.emailli...@gmail.com
 To: Flexcoder List flexcoders@yahoogroups.com
 Sent: Friday, January 16, 2009 11:14 PM
 Subject: [flexcoders] model locator population too late

  Hi there,
 
  I have an app that uses a model locator class.
 
  Now I have a component that is passed in a reference to another
  component (A progress bar in my case).
 
  Now my problem is that the component is being created prior to the
  model locator being populated with the reference to the progress  
 bar.
 
  So then obviously my component does not work as expected as it needs
  that reference.
 
  I have no idea on how to get around this issue. I can't populate the
  model locator (manually) any earlier as the progress bar has not yet
  been created.
 
  Ideas?
 
  d


Re: [flexcoders] model locator population too late

2009-01-16 Thread dnk
It is. As there are other aspects of the app that use the reference in  
the model successfully.

I just traced out and found out that at the time when i wanted to use  
it, that it is not yet populated.

d



On 16-Jan-09, at 3:14 PM, Paul Andrews wrote:

 Surely the progress bar is bound to the model, not part of the model  
 itself?

 - Original Message -
 From: dnk d.k.emailli...@gmail.com
 To: Flexcoder List flexcoders@yahoogroups.com
 Sent: Friday, January 16, 2009 11:14 PM
 Subject: [flexcoders] model locator population too late

  Hi there,
 
  I have an app that uses a model locator class.
 
  Now I have a component that is passed in a reference to another
  component (A progress bar in my case).
 
  Now my problem is that the component is being created prior to the
  model locator being populated with the reference to the progress  
 bar.
 
  So then obviously my component does not work as expected as it needs
  that reference.
 
  I have no idea on how to get around this issue. I can't populate the
  model locator (manually) any earlier as the progress bar has not yet
  been created.
 
  Ideas?
 
  d