Welcome Guest ( Log In | Register )

3 Pages V   1 2 3 >  
Reply to this topicStart new topic
> New Prototype, for 13dots users only
cybernetix
post Nov 6 2004, 12:04 PM
Post #1


ReloadeD
Group Icon
Group: Honored
Posts: 562
Joined: 20-May 04
From: Belgrade, Serbia
Member No.: 17





CODE
onload() {
movieclip.prototype.fillSprite=function(r1) {
var r2=r1,s=r1/15,d=r1/3,z=15;r1-=d/2;s-=s/5;
this.beginFill(0xffffff,100),
this.moveTo(0,0),
this.lineTo(r2*2,0),this.lineTo(r2*2,r2*2),this.lineTo(0,r2*2),this.lineTo(0,0),
this.endFill();
for (j=0;j<2;j++) {
for (i=170;i<430;i+=(z+=.75)){
x=r1*Math.cosDeg(i)+r1+d/(j==0?2:3),y=r1*Math.sinDeg(i)+r1+d/(j==0?1.75:3);
this.lineStyle(s+=s/7.5,j==0?0xCCCCCC:0x3D0079),
this.moveTo(x,y),this.lineTo(x+1,y);
}; z=15,s=r1/15;
this.lineStyle(r2/12,j==0?0xCCCCCC:0x3D0079),
this.moveTo(r1-d/2,r1-d/2),this.lineTo(r1-d/3,r1-d/2),this.lineTo(r1-d/3,r1+d),
this.moveTo(r1-d/2,r1+d),this.lineTo(r1-d/5,r1+d);
this.moveTo(r1+d/3,r1-d/2),this.lineTo(r1+d,r1-d/2),this.lineTo(r1+d,r1+d),
this.lineTo(r1+d/3,r1+d),this.moveTo(r1+d/3,r1+d/5),this.lineTo(r1+d,r1+d/5);
};
};
b=createEmptyMovieClip("sprite1",1);
b._x=10, b._y=10;
b.fillSprite(50) // CHANGE THIS NUMBER (50) TO ENLARGE OR SHRINK SPRITE
}


copy this code to swi file and test it in external browser. set EXPORT file to SWF6 !

and make some dark movie background color.

dance.gif
 
+Quote Post  Go to the top of the page
*D*
post Nov 6 2004, 12:10 PM
Post #2


Merry KissMoose
Group Icon
Group: Main Team
Posts: 15,990
Joined: 18-May 04
From: North Pole
Member No.: 2





lol great, wondered what it was going to do.

Nice smile.gif
 
+Quote Post  Go to the top of the page
Vincent
post Nov 6 2004, 12:39 PM
Post #3


New Member
Group Icon
Group: Member
Posts: 1
Joined: 13-October 04
Member No.: 876





LOL,,Good one Nenad.

~Vincent
 
+Quote Post  Go to the top of the page
jaridworks
post Nov 6 2004, 03:13 PM
Post #4


Regular Dot
Group Icon
Group: Member
Posts: 77
Joined: 20-May 04
Member No.: 18



Nice scripting.. I was also wondering what it was gonna be

Jarid
 
+Quote Post  Go to the top of the page
cybernetix
post Nov 6 2004, 06:12 PM
Post #5


ReloadeD
Group Icon
Group: Honored
Posts: 562
Joined: 20-May 04
From: Belgrade, Serbia
Member No.: 17





thanks to all bigwink.gif

I almost forgot shadow rolleyes.gif

CODE
onload() {
movieclip.prototype.fillSprite=function(r1) {
  var r2=r1,s=r1/15,d=r1/3,z=15;r1-=d/2;s-=s/7.5;
  this.beginFill(0xffffff,100),
      this.moveTo(0,0),
      this.lineTo(r2*2,0),this.lineTo(r2*2,r2*2),this.lineTo(0,r2*2),this.lineTo(0,0),
  this.endFill();
  for (j=0;j<2;j++) {
      for (i=170;i<430;i+=(z+=.75)){
          x=r1*Math.cosDeg(i)+r1+d/(j==0?2:3),y=r1*Math.sinDeg(i)+r1+d/(j==0?1.75:3);
          this.lineStyle(s+=s/7.5,j==0?0xCCCCCC:0x3D0079),
          this.moveTo(x,y),this.lineTo(x+1,y);
      }; z=15,s=r1/14;
      this.lineStyle(r2/12,j==0?0xCCCCCC:0x3D0079),    
      this.moveTo(r1-d/2,r1-d/2),this.lineTo(r1-d/3,r1-d/2),this.lineTo(r1-d/3,r1+d),
      this.moveTo(r1-d/2,r1+d),this.lineTo(r1-d/5,r1+d);
      this.moveTo(r1+d/3,r1-d/2),this.lineTo(r1+d,r1-d/2),this.lineTo(r1+d,r1+d),
      this.lineTo(r1+d/3,r1+d),this.moveTo(r1+d/3,r1+d/5),this.lineTo(r1+d,r1+d/5);
  };
};
b=createEmptyMovieClip("sprite1",1);
b._x=10, b._y=10;
b.fillSprite(50) // CHANGE THIS NUMBER (50) TO ENLARGE OR SHRINK SPRITE
}


Tip-Hat.gif
 
+Quote Post  Go to the top of the page
emory
post Nov 6 2004, 06:30 PM
Post #6


Regular Dot
Group Icon
Group: *Premier*
Posts: 84
Joined: 20-September 04
Member No.: 727





Very Good Scripting cybernetix.
Thanks for sharing. smile.gif
 
+Quote Post  Go to the top of the page
fedhater
post Nov 7 2004, 02:06 AM
Post #7


Mad Scientist
Group Icon
Group: *Premier*
Posts: 629
Joined: 19-May 04
From: .RO
Member No.: 10





Very nice "script render" Cybernetix
 
+Quote Post  Go to the top of the page
JDawg
post Nov 7 2004, 06:57 AM
Post #8


~El Vato Loco~
Group Icon
Group: Member
Posts: 328
Joined: 21-May 04
From: Missouri
Member No.: 25





very cool script render.....turned out nice...and the shadow adds that little extra zing...lol.....nice job
 
+Quote Post  Go to the top of the page
cybernetix
post Nov 9 2004, 12:05 PM
Post #9


ReloadeD
Group Icon
Group: Honored
Posts: 562
Joined: 20-May 04
From: Belgrade, Serbia
Member No.: 17





thanks guys bigwink.gif
 
+Quote Post  Go to the top of the page
djdestruction
post Dec 14 2004, 09:23 AM
Post #10


New Member
Group Icon
Group: *Premier*
Posts: 15
Joined: 5-November 04
Member No.: 1,028





Very Nice!

Cybernetix, why do you hate firefox?
 
+Quote Post  Go to the top of the page

3 Pages V   1 2 3 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

RSS Lo-Fi Version Time is now: 29th July 2010 - 11:06 PM
Cheap Sheets | Free Ecards | Compare Savings | Wordpress Themes | Watch Anime