slow flash playback
- Started
- Last post
- 7 Responses
- imakedesign
hi, my flash movie plays back slowly on some computers, fairly sure its becasue i have a lot of onenterFrame code running. is there a way to activate the onenterFrame code at a given time, then get rid of it??
cheers,
- ********0
onEnterFrame = null;
- tomkat0
once you have reached a certain value, for instance in a movemenet, you can
delete this.onEnterFrame;
- imakedesign0
so whacking in a if statement should help?
onClipEvent (enterFrame) {
if (_root.on=true;) {
// use this code
} else {
onEnterFrame = null;
}
}
- ********0
not sure I get yer thinkin oan that....
- imakedesign0
what i mean in how do i stop the onenterframe running when i dont need it but call it up again when i do need it.
- ok_not_ok0
do this:
this.onEnterFrame =
function(){
if (true){
//some actions
}else{
delete this.onEnterFrame;
}
}
- ********0
same thing different way -
function doIt(){
this.onEnterFrame = function(){
if (true){
//some actions
}else{
delete this.onEnterFrame;
}
}just call doIt and all is well.