[flexcoders] using application.callLater from a non-UI component?

2006-09-07 Thread thunderstumpgesatwork
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

Re: [flexcoders] using application.callLater from a non-UI component?

2006-09-07 Thread Michael Schmalle
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

Re: [flexcoders] using application.callLater from a non-UI component?

2006-09-07 Thread Michael Schmalle
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

Re: [flexcoders] using application.callLater from a non-UI component?

2006-09-07 Thread Michael Schmalle
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