# Stars?!

**URL:** <https://forum.kirupa.com/t/stars/246593>\
**Category:** flash\
**Created:** [December 12, 2007, 5:29pm UTC](https://forum.kirupa.com/t/stars/246593 "2007-12-12T17:29:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![diminisheduk](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@diminisheduk](https://forum.kirupa.com/u/diminisheduk)\
**Post date:** [December 12, 2007, 5:29pm UTC](https://forum.kirupa.com/t/stars/246593/1 "2007-12-12T17:29:06Z")

</div>

hey could anyone help me?

i’ve been set an assignment to create a city scene using actionscript only (see attatched file). i’m just wondering if someone could help me to make stars come out as night time falls, as this is a part of the assessment.

i have the following code but cannot get it to work:

var numStars:Number = 50; for (i=1; i\<=numStars; i++)  
{ \_root[“star”+i].onEnterFrame = function()  
{ this.\_alpha = Math.random()\*40+60;  
this.\_rotation+=10;  
};  
}
