Hi.
I have the code below which rotates a MC and fades it in to 100alpha and then fades it out again to 0 alpha
bearing in mind that all this happens on one frame, is there a way to get rid of the ghost image of the MC once the alpha gets down to 0?
I’ve tried to achieve this at the foot of this code with the removeMovieClip() but it doesn’t seem to work.
I know i could just let the timeline play to another frame once the animation is over to get rid of the ghost image but i’d really like to keep the animation to just the one frame…
is there a way?
Any help would be most appreciated.
[AS]
onClipEvent (load) {
amount = 5;
count = 0
_alpha = 10;
reached100=false
}
onClipEvent (enterFrame) {
_rotation += amount;
count++
if (count == 360) {
amount = 0;
}
if ((_alpha<100) and (reached100==false)){
_alpha+=4;
}
else {
if(_alpha!=0){
reached100=true
_alpha-=4;
}
else {
if (_alpha == 0)
{
this.removeMovieClip();
this.onEnterFrame = null;
}
}
}
}
[/AS]