[Xerte] Re: Stop/start onEnterFrame event

Dave Burnett d_b_burnett at hotmail.com
Mon Mar 28 13:27:22 BST 2011



myFunction = function(){  ///blah}
But I can't do this on the Xerte line correct?
function() is unavailable?


On the Xerte line I have:

button.onPress event
trips isfunc ffbuttonDown //set ffisDown = 1;
At that point, onEnterFrame on my timing dummy is running constantly so I set a variable to allow the script inside that to execute.




From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Mon, 28 Mar 2011 12:51:12 +0100
Subject: [Xerte] Re: Stop/start onEnterFrame event



The way to turn it on or off is to delete the function – it will otherwise always run.  So the function ca say if(mySomeFlag == true) do stuff else not; I prefer to recreate the function. The way I like to do is to create a function 
myFunction = function(){  ///blah} Then myMC.onEnterFrame = myFUnction to start it; delete myMC.onEnterFrame //doesn’t delete the function, I think, otherwise I recreate the tracker clip itself, From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 28 March 2011 12:49
To: Xerte list
Subject: [Xerte] Stop/start onEnterFrame event 
Think I went down this road before and could not figure it out.

If I have an event icon set to target the onEnterFrame event of a dummy swf I'm using just to update stuff at certain times, is there a way to turn that event off and on?
Or does it just run constantly and I need to use a secondary variable to execute it's code or not?

Cheers,

Dave





This message and any attachment are intended solely for the addressee and may 
contain confidential information. If you have received this message in error, 
please send it back to me, and immediately delete it.   Please do not use, 
copy or disclose the information contained in this message or in any attachment.  
Any views or opinions expressed by the author of this email do not necessarily 
reflect the views of the University of Nottingham.


This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.


_______________________________________________
Xerte mailing list
Xerte at lists.nottingham.ac.uk
http://lists.nottingham.ac.uk/mailman/listinfo/xerte

This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it.   Please do not use, copy or disclose the information contained in this message or in any attachment.  Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.

This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system:
you are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation. 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20110328/68766309/attachment-0001.html>


More information about the Xerte mailing list