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
Hey,Try this;import mx.core.UIComponent;public class nonUIClass{ private var callLaterObject:UIComponent; public function invalidate(func:Function):void {
if (!callLaterObject) { callLaterObject = new UIComponent(); } engine.callLater(func); } public function
sent it to soon;import mx.core.UIComponent;public class nonUIClass{ private var callLaterObject:UIComponent; public function invalidate(func:Function):void { if (!callLaterObject)
{ callLaterObject = new UIComponent(); } callLaterObject.callLater(func); } public function
Hmm.. my post didn't seem to send...import mx.core.UIComponent;public class nonUIClass{ private var callLaterObject:UIComponent; public function invalidate(func:Function):void
{ if (!callLaterObject) { callLaterObject = new UIComponent(); } callLaterObject.callLater(func); } public
4 matches
Mail list logo