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()
{
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
{
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
: [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
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
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:
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
7 matches
Mail list logo