[Xerte] Re: Stop/start onEnterFrame event
Julian Tenney
Julian.Tenney at nottingham.ac.uk
Mon Mar 28 12:51:12 BST 2011
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20110328/18c46205/attachment.html>
More information about the Xerte
mailing list