|
-
hi guys,
i manage to solve the problem already, thanks to a good Delegate Tutorial from
http://www.actionscript.org/tutorial...ss/index.shtml
quoted from Actionscript.ORG
Another neat way in which you can use Delegate is with setInterval. Internally when functions are called from an interval the scope is sometimes not passed along, so that trace(this); will show undefined. You can properly impose a scope on an interval using the following actioncript:
import mx.utils.Delegate;
function traceThis()
{
trace(this);
}
var myInt = setInterval(Delegate.create(this, traceThis), 1000);
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|