[EMAIL PROTECTED] wrote:
Hello All ---
I am trying to run an onEnterFrame or setInterval in a Class (which extends mx.core.UIComponent) and not having much luck.
If I use onEnterFrame it runs once and then dies. I have even tried using Delegate with the onEnterFrame and still no luck.
Likewise, I have tried using setInterval with Delegate and while it gets called it only seems to keep the scope passed from the
Delegate the first time thru. The remaining calls, the scope is undefined.
Any ideas as to what I am doing wrong.
Thanks for any and all replies.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
class myClass{
var myInterval:Number;
function myCallBack(){
trace("whee");
}
function myClass(){
myInterval = setInterval(this,"myCallBack",1000);
}
}
Works every time.
- Andreas
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com