Okay, my last one honest.
Click to place a star. Press enter to start a new constellation. Post pictures of what you come up with!!!
Stage.scaleMode = "noScale";//1
_root.createEmptyMovieClip("line",1).lineStyle(2,0xFFFFFF);//2
t = 0;//3
MovieClip.prototype.drawStar = function(x, y, scale) {
this.beginFill(0xFFFFFF, 100);//4
this.moveTo(10, 0);//5
this._x = x, this._y = y;//6 7
this._xscale = this._yscale = (scale) ? scale : 10;//8
for (j = 0; j <= (Math.PI*2); j += (Math.PI*2) / 7) {//9
this.lineTo(10 * Math.cos(j), 10 * Math.sin(j));//10
this.lineTo(5 * Math.cos(j + Math.PI / 7), 5 * Math.sin(j + Math.PI / 7));//11
}
}
MovieClip.prototype.bounce = function () {
this.onEnterFrame = function () {
this._xscale += (150-this._xscale)/3;//12
this._yscale += (150-this._yscale)/3;//13
this._rotation += 3;//14
(Key.isDown(Key.ENTER)) ? _root.t=0 : null;//15
}
}
MovieClip.prototype.fade = function () {
this.onEnterFrame = function () {
(_alpha<0) ? (this.removeMovieClip(), _root.t=0) : _alpha -= 5;//16
}
}
_root.onEnterFrame = function () {
pointer._x = _xmouse;//17
pointer._y = _ymouse;//18
pointer._visible = (t==0) ? true : false;//19
}
_root.onMouseDown = function () {
_root.createEmptyMovieClip(name = "star"+getNextHighestDepth(),getNextHighestDepth()).drawStar(_xmouse,_ymouse);//20
_root[name].bounce();//21
(t == 0) ? line.moveTo(_xmouse, _ymouse) : line.lineTo(_xmouse, _ymouse);//22
t++;//23
}
_root.createEmptyMovieClip("pointer",getNextHighestDepth()).drawStar(100,100, 150);//24