RE: [Flashcoders] pause an onEnterFrame?

2007-05-08 Thread Durai Raj
You can set a toggle variable to pause and resume the event Code snippets //Toggle variable Var bToggleEvent:Boolean=true Somemc.onEnterFrame=function():Void { If(bToggleEvent) { //Execute the code here } } Somemc.onRollover=function() { bToggleEvent=false } Somemc.onRollout=function() {

Re: [Flashcoders] pause an onEnterFrame?

2007-05-08 Thread iashido
http://proto.layer51.com/d.aspx?f=821 itseveryday.ro iashido.com On May 8, 2007, at 8:53 AM, Durai Raj wrote: You can set a toggle variable to pause and resume the event Code snippets //Toggle variable Var bToggleEvent:Boolean=true Somemc.onEnterFrame=function():Void {

Re: [Flashcoders] pause an onEnterFrame?

2007-05-08 Thread Leandro Amano
Don't use onEnterFrame event in mc instances, example: var o:Object = new Object(); o.onEnterFrame = function() { trace(true); }; var mc:MovieClip = this.attachMovie(a, b, 1, o); []'s Leandro Amano On 5/8/07, Durai Raj [EMAIL PROTECTED] wrote: You can set a toggle variable to pause and

RE: [Flashcoders] pause an onEnterFrame?

2007-05-08 Thread Durai Raj
: [Flashcoders] pause an onEnterFrame? Don't use onEnterFrame event in mc instances, example: var o:Object = new Object(); o.onEnterFrame = function() { trace(true); }; var mc:MovieClip = this.attachMovie(a, b, 1, o); []'s Leandro Amano On 5/8/07, Durai Raj [EMAIL PROTECTED] wrote: You can set

Re: [Flashcoders] pause an onEnterFrame?

2007-05-08 Thread Count Schemula
that we did that on the object. But I guess Schemula specified for a movieClip? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Leandro Amano Sent: Tuesday, 8 May, 2007 23:36 To: flashcoders@chattyfig.figleaf.com Subject: Re: [Flashcoders] pause

Re: [Flashcoders] pause an onEnterFrame?

2007-05-07 Thread 阿本
flashcoders,你好 you can set like this: var flag=0; onEnterFrame=function() { if(flag==1) { } else if(flag!=1) { } } I think this can do you want things! [EMAIL PROTECTED] 2007-05-08 - Original Message - From: Count Schemula To: flashcoders list Sent:

Re: [Flashcoders] pause an onEnterFrame?

2007-05-07 Thread Snepo - Arse
or just onEnterFrame = function() { if(paused) return; } On 08/05/2007, at 3:15 PM, 阿本 wrote: flashcoders,你好 you can set like this: var flag=0; onEnterFrame=function() { if(flag==1) { } else if(flag!=1) { } } I think this can do you want