Hi all… i’m new to this forum and to this subject. I was hoping that you could help me out.
i have the following issue to resolve:
would like to create a night sky with a few stars. i dont want too many stars, plus i want them placed exactly where i wish. so i made a star graphic and issued it with the following code:
onClipEvent (enterFrame) {
getTargetAlpha = function(){
return Math.random() * 100;
};
this.speed = 9;
this.target = this.getTargetAlpha();
this.onEnterFrame = function(){
if(this._alpha < this.target){
this._alpha += this.speed;
}else if(this._alpha > this.target){
this._alpha -= this.speed;
}else if(this._alpha == this.target){
this.target = this.getTargetAlpha;
}
};
}
it flickers! Yuppie! … now i would like to make it fade into the scene. AND THATS WHERE THE PROBLEMS BEGIN. you would reply: TWEEN IT! … but i tried that and it didnt work. So that is the only thing i know how to do. i’ve looked up a few codes on the web, but i havent managed to find anything useful (i dont think).
Basically all i would like it to do is fade into it, and stop there.
PLEEEEASE help! Thank you