Hi all,
I need to use the equivalent of UIComponent.callLater() but from a
non-UIComponent class.
I've tried using the top level application using
mx.core.Application.application.callLater()
but that doesn't seem to work to call my non-ui object's method. Does
that function only work if you're calling it from the same class as
the callback method?
Does anyone know of another way to do this?
thanks,
Thunder
see code example
import mx.core.Application;
public class nonUIClass
{
public function invalidateSomething():void
{
// try to call the update function on next update
mx.core.Application.application.callLater(updateSomething);
// I've tried both of these methods..
// shouldn't make a difference right?
mx.core.Application.application.callLater(this.updateSomething);
}
public function updateSomething():void
{
// not being called by callLater in invalidateSomething()
}
}
------------------------ Yahoo! Groups Sponsor --------------------~-->
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/3EuRwD/bOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~->
--
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/