Try mx.utils.Delegate might be the scope.

Jim

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kevin
Aebig
Sent: 24 February 2006 19:59
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] setInterval inside created Clip

I gave it a try and it didn't fire. I even added a trace statement to
make
sure that the function wasn't firing and not functioning properly.

!k

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ettwein,
Josh
Sent: February 24, 2006 12:29 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] setInterval inside created Clip

How about... Note I added some dummy values to vars to get it to work in
my environment. The last param is optional, but I figured I'd throw that
in there in case you weren't aware of that one.

var rootRef =_root;
var vItemCount =1;
var newName ="test";

rootRef.work.createEmptyMovieClip(newName, vItemCount);
var newClip = rootRef.work[newName];

newClip.doSomething = function(arg){
        trace("I just did something... yay! "+arg);
}

var intID =setInterval( newClip, "doSomething", 1000, "say this" ); 

HTH,

Josh

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Kevin
Aebig
Sent: Friday, February 24, 2006 9:27 AM
To: 'Flashcoders mailing list'
Subject: RE: [Flashcoders] setInterval inside created Clip

Nope... didn't work. This is weird because a call to
newClip.doSomething() works exactly as expected... 

Cheers,

Kevin

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Byron
Canfield
Sent: February 24, 2006 11:01 AM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] setInterval inside created Clip

newClip.intervalid = setInterval(newClip.doSomething, 200);


--
Byron "Barn" Canfield


> Hey All,
>
> I'm looping through a structure adding movieclips along the way for
each
> element. I need to setup a separate interval inside each new clip. If
I
> call
> the function directly, I need this to be constantly updating without
an
> onEnterFrame.
>
>
>
> _root.work.createEmptyMovieClip( newName, vItemCount );
> //
> var newClip = _root.work[newName];
> //
> // this function redraws the line
> newClip.doSomething = function(){
>             // {.}
> }
> // I've tried all of the following
> // newClip.intervalid = setInterval(this, doSomething, 200);
> // newClip.intervalid = newClip.setInterval(doSomething, 200);
> // newClip.intervalid = setInterval(newClip, doSomething, 200);
>
> Any insight or help is appreciated.
>
>
> Cheers,
>
> !k


_______________________________________________
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


_______________________________________________
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
_______________________________________________
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


_______________________________________________
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

_______________________________________________
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

Reply via email to