Results 1 to 15 of 18
Thread: Spiraling Stars
-
January 13th, 2006, 03:33 PM #1
Spiraling Stars
He is my first submission
. I will probably have more updates on it soon. Currently, it is 24 lines.
Stage.scaleMode= "noScale";
function CreateCircle(Name,width){
_root.depthvar++
mc = _root.createEmptyMovieClip (Name,depthvar);
mc.lineStyle(width/4,0x5797D7,30);
mc.beginFill(0x48BCE1,50);
for(var t=0;t<360;t+=10){
if(t!=0) mc.lineTo((width*.75+width*.25*Math.sin(t*5*Math.PI/180))*Math.cos(t*Math.PI/180),(width*.75+width*.25*Math.sin(t*5*Math.PI/180))*Math.sin(Math.PI/180*t));
else mc.moveTo((width*.75+width*.25*Math.sin(t*5*Math.PI/180))* Math.cos(t*Math.PI/180),(width*.75+width*.25*Math.sin(t*5*Math.PI/180))*Math.sin(Math.PI/180*t));
}
mc.endFill();
return mc;
}
MovieClip.prototype.FollowPoint=function(x,y){
this._x= this._x+(x-this._x)/5;
this._y= this._y+(y-this._y)/5;
}
onEnterFrame=function(){
dist=Math.sqrt((_xmouse-mc0_0._x)*(_xmouse-mc0_0._x)+(_ymouse-mc0_0._y)*(_ymouse-mc0_0._y));
angle+=5;
d<70 ? d=70 : d=dist/1.4;
nodesToFollow = [[_xmouse+d* Math.cos(angle*Math.PI/180) , _ymouse+d*Math.sin(angle*Math.PI/180)],[_xmouse+d*Math.cos((angle+120)*Math.PI/180) , _ymouse+d*Math.sin((angle+120)*Math.PI/180)],[_xmouse+d*Math.cos((angle+260)*Math.PI/180) , _ymouse+d*Math.sin ((angle+260)*Math.PI/180)]];
}
for(var n=0;n<3;n++){
mc = CreateCircle("mc"+n+"_0");
mc.n=n;
mc.onEnterFrame=function(){
this.FollowPoint(nodesToFollow[this.n][0],nodesToFollow[ this.n][1]);
}
for(var n2=0;n2<10;n2++){
mc2=CreateCircle("mc"+n+"_"+(n2+1),20);
mc2.FollowMc=_root["mc"+n+"_"+n2];
mc2._alpha=mc2._xscale=mc2._yscale=(7-n2)*(100/7)
mc2.onEnterFrame = function(){
this._rotation=angle;
this.FollowPoint(this.FollowMC._x,this.FollowMC._y);
}
}
}
Please let me know what you think!
-freeskier89
Last edited by freeskier89; January 13th, 2006 at 07:16 PM.
-
January 13th, 2006, 03:45 PM #2
Very nice
-
January 13th, 2006, 03:59 PM #3
very "kool"

"HEY!"
"YEAH!"
"WHAT?!"
"OKAY!"
"LET'S GO..." - Lil Jon.
-
January 13th, 2006, 05:02 PM #4152Registered User
postsGreat stuff Freeskier!
-
January 13th, 2006, 05:17 PM #5
Nice
"60% of the time it works... every time." -- Paul Rudd as Brian Fantana.
-
January 13th, 2006, 05:25 PM #6
Sweet
Member #2 of the "I wont critique Timmytot's designs anymore" club.
-
January 13th, 2006, 06:07 PM #7
That's awesomeeeee.
me.createSomethingNew(now);...lurking around
-
January 13th, 2006, 07:17 PM #8
-
January 13th, 2006, 07:18 PM #9
Smooooth!!!
-
January 14th, 2006, 12:45 AM #106,170iAm t3h hybrid
postswow, nice effect!!!
-
January 14th, 2006, 04:47 AM #11
Wow!
nokrev on Adobe and Macromedia:
With the merger, these two great technologies will be merging.
nokrev on this footer:
I love seeing Sinister Shadow's footer.
-
January 14th, 2006, 06:24 PM #12
Really really nice effect.
Just curious here, but isn't:
exactly the same asCode:width*.75+width*.25
?Code:width
Build a man a fire and he is warm for a day.
Set a man on fire and he is warm for the rest of his life.
-
January 14th, 2006, 06:35 PM #13
nokrev on Adobe and Macromedia:
With the merger, these two great technologies will be merging.
nokrev on this footer:
I love seeing Sinister Shadow's footer.
-
January 14th, 2006, 07:43 PM #14
-
January 14th, 2006, 10:38 PM #15
I said it once and I'll say it again, very nice
.
Proud Montanadian
We tolerate living and breathing. And niches.
Name Brand Watches
Maybe getTimer() or TweenMax is the answer to your problem . . .
Similar Threads
-
Falling Snow into Falling Twriling Stars
By INVERT3D in forum Flash IDEReplies: 2Last Post: October 18th, 2007, 07:42 AM -
Random vertically scrolling stars
By Inferno in forum Game/AI ProgrammingReplies: 28Last Post: November 20th, 2004, 07:30 PM -
Stars
By Derlei in forum Flash IDEReplies: 0Last Post: November 18th, 2004, 04:35 PM -
tips on drawing stars or light points?
By kmax in forum Flash IDEReplies: 2Last Post: August 12th, 2004, 01:54 PM -
were can i find picture of rappers and R'n'B stars about 500x500 in size
By chris9902 in forum RandomReplies: 7Last Post: May 22nd, 2003, 05:24 PM

Reply With Quote

Bookmarks