In this section of your code...
PHP Code:/* Attaches the Star movieclp to the Stage and sets its parameters */
_root.attachMovie("Star", "myStar"+init, _root.getNextHighestDepth());
_root["myStar"+init]._x = Math.random() * windowWidth;
_root["myStar"+init]._y = Math.random() * windowHeight;
_root["myStar"+init]._xscale = _root["myStar"+init]._yscale = Math.random() * (maxSize - minSize) + minSize;
sets the X and Y positon of the clip... change the random value to what you need for example:PHP Code:Math.random() * windowWidth
will give you a set of random numbers between 0 and 100...PHP Code:Math.random() * 100
will give you a set of random numbers between 50 and 150... get it?PHP Code:(Math.random() * 100)+50





Reply With Quote