# Graphic Fade?

**URL:** <https://forum.kirupa.com/t/graphic-fade/277586>\
**Category:** flash\
**Created:** [December 14, 2008, 9:49am UTC](https://forum.kirupa.com/t/graphic-fade/277586 "2008-12-14T09:49:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yachtpicasso](https://avatars.discourse-cdn.com/v4/letter/y/f08c70/32.png) [@yachtpicasso](https://forum.kirupa.com/u/yachtpicasso)\
**Post date:** [December 14, 2008, 9:49am UTC](https://forum.kirupa.com/t/graphic-fade/277586/1 "2008-12-14T09:49:34Z")

</div>

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
