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()
{

bToggleEvent=true

}


Hope this would solve your problem

Durai

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Count
Schemula
Sent: Tuesday, May 08, 2007 10:22 AM
To: flashcoders list
Subject: [Flashcoders] pause an onEnterFrame?

Is there anyway to pause an onEnterFrame event?

Right now I delete the onEnterFrame when an onRollOver event occurs,
and reinitialize it when an onRollOut event occurs, but that causes
all of my motion variables to get re-initiated, and thus makes the
motion go through a huge jump.

Is there a way to pause, and resume an onEnterFrame?

Thanks.

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



DISCLAIMER:
This communication may be confidential and privileged and the views expressed 
herein may be personal and are not necessarily the views of ReDIM.
It is for the exclusive use of the intended recipient. If you are not the 
intended recipient, please note that any distribution,
copying or use of this communication or the  information in it is strictly 
prohibited.If you have received this communication 
in error, please notify us by email ([EMAIL PROTECTED]) and then delete the 
email and any copies of it.


_______________________________________________
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