Hello all, I am going to try this again. With al little more etiquette.
When you have an "onEnterFrame" and you want to terminate it but call
on a function at the end of it, what is the best way of doing this?
Do you call the function first and then end the onEnterFrame or do
you end the onEnterFrame and then call the function?
Also, do you use onEnterFrame = null or is it better to delete
onEnterFrame?
thumbLoader.onEnterFrame = function() {
if (loaded != filesize) {
//do this
} else if (loaded == filesize) {
//end that
if (thumbLoader._alpha < 100) {
thumbLoader._alpha += 10;
} else {
loadImages();
this.onEnterFrame = null;
}
}
};
Is this code correct?
loadImages(); is my function I want to call.
I hope this better for a post.
Thanks
Karl DeSaulniers
Design Drumm
http://designdrumm.com
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders