This is probably a (VERY) stupid question…
Is there any way to stop a script?
Lets say I have the following script:
onClipEvent (load) {
this._alpha = 0;
}
onClipEvent (enterFrame) {
if (this._alpha<95) {
this._alpha += 5;
}
if (this._alpha>95) {
this._alpha = 100;
}
}
The problem with this is that it keeps repeating the enterFrame script… I want it to stop running the script when its done (if you get what I’m saying)
Any ideas or suggestions?
Nope…
That was the first thing I tried… hehehe…
I put a trace in… According to the trace it keeps running…
dynamic event handlers…
myClip._alpha = 0;
myClip.onEnterFrame = function() {
if (this._alpha<95) {
this._alpha += 5;
} else {
this._alpha = 100;
delete this.onEnterFrame;
}
}
of course, use the script in the frame actions, not in the MovieClip actions. 
wow… mexico helping malaysia… we have like a 12 hour (more or less) time difference… this is SOOOO cool. 
ehmm… that’s because i’m a vampire. 

ok, i’ll repay you with a bit of my blood… 
as long as it isn’t yellow or some weird color… 
nope… still red…
eek… the little envelope is starting to bleed already… its turning red!!! 
bah! there’s no alcohol in this blood!! :hair: 
we’ll need to spice it up with a bit of tequila… then i’ll also drink 
a bloody mary (literally)?.. 