Hi guys,

I have successfully used this technique to invoke callLater from a
non-UIComponent, and it was suggested in this thread:
http://tech.groups.yahoo.com/group/flexcoders/message/49612

And I have since then seen this method used in the Framework as well..
It works for me in one case, but not in others. 

Here is the code I am using that is not having the 'refreshQuery'
called later. Note that this code is being called from a "bindSetter"
binding method in this class. That shouldn't make a difference right?

What else could cause the function to never be called? The function is
an override from a base class...? I can step into the
UIComponent.callLater() function and see the event listeners being
added to the system manager for the next RENDER and ENTER_FRAME
events... but it never gets called...

thanks for any help, I really need to solve this one somehow.

Thunder


                
// UIComponent needed to use callLater()
private var myCallLaterComponent:UIComponent;

private var _myQueryValid:Boolean = true;
                
public function invalidateQuery(event:Event=null):void
{
   if (_myQueryValid==true)
   {
      // switching from true to false
      // call the refresh function later.
      if (myCallLaterComponent == null)
      {
         myCallLaterComponent = new UIComponent();
         myCallLaterComponent.systemManager =
mx.core.Application.application.systemManager;
      }
      myCallLaterComponent.callLater(refreshQuery);
   }
                
   _myQueryValid=false;
}






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to