PDA

View Full Version : Quarter Circle thing from Levitated in 25 lines


Sciurus
01-22-2006, 06:32 PM
This is the Quarter Circle thing in 25 lines. If anyone can help me make only one thing per grid square, that would be nice :)

Click to make a new scene.


_root.createEmptyMovieClip("rt0", 2);
//1
function drawed(r, a, b, c, d, e, f, g, h, x, y) {
ro = 2;
//2
hue = new Array("555500","666600", "777700", "888800", "999900", "AAAA00", "BBBB00", "CCCC00","DDDD00");
//3
color = hue[random(hue.length)];
//4
r.lineStyle(1, "0x"+color, 100);
//5
r.beginFill("0x"+color, 100);
//6
r.moveTo(a+x, b+y);
//7
r.lineTo(c+x, d+y);
//8
r.curveTo(e+x, f+y, g+x, h+y);
//9
r.endFill();
//10
}
i = 1;
//11
onEnterFrame = function () {
if (i<50) {
// 12
drawed(rt0, 0, 0, 50, 0, 50, 50, 0, 50, random(11)*50, random(8)*50);
// 13
drawed(rt0, 50, 0, 50, 50, 0, 50, 0, 0, random(11)*50, random(8)*50);
// 14
drawed(rt0, 50, 50, 0, 50, 0, 0, 50, 0, random(11)*50, random(8)*50);
// 15
drawed(rt0, 0, 50, 50, 50, 50, 0, 0, 0, random(11)*50, random(8)*50);
// 16
i ++
// 17
}
};
onMouseDown = function () {
if (i>49) {
// 18
i = 1;
// 19
rt0.removeMovieClip();
// 20
_root.createEmptyMovieClip("rt0", 2);
// 21
}
};

Jeff Wheeler
01-22-2006, 06:41 PM
Excellent! Why aren't you using coding tags?

Sciurus
01-22-2006, 06:45 PM
Because I have yet to learn how
:lol:

Jeff Wheeler
01-22-2006, 06:48 PM
like this…

Sciurus
01-22-2006, 06:49 PM
?
What tags?

Jeff Wheeler
01-22-2006, 06:50 PM
I was testing… fixed my post. ;)

Plus, you can always find what tags somebody used by quoting their post, and looking at what they said.

Sciurus
01-22-2006, 06:51 PM
I see....
But it isn't working for me.

Jeff Wheeler
01-22-2006, 06:53 PM
You pasted formatted code into it… copy the code directly out of Flash.

Sciurus
01-22-2006, 06:55 PM
Many thanks!

Jeff Wheeler
01-22-2006, 06:56 PM
No problem. ;)

Sinister Shadow
01-22-2006, 09:09 PM
Nice effect, I'm liking this!

like this…
Why not just use SomeCode instead?

Jeff Wheeler
01-23-2006, 12:50 AM
It's exactly the same. No reason.

Seb Hughes
01-23-2006, 03:45 PM
That very intresting.

lunatic
01-23-2006, 03:48 PM
Also, if you are trying to explain to someone how to use the as tags then use the [no parse] tags around them (with no space in between "no" and "parse"). For example
this is how to use AS tags
is [no parse][a s]this is how to use AS tags[/a s][/no parse]
with no spaces


:hr:

Sammo
01-23-2006, 04:05 PM
Very nice work! :D


<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Flash Bang Pop</title>
<link>http://www.flashbangpop.com/</link>
<description></description>
<language>en-us</language>
<copyright>Copyright 2006</copyright>

<lastBuildDate>Wed, 18 Jan 2006 21:33:30 +0000</lastBuildDate>
<docs>http://blogs.law.harvard.edu/tech/rss</docs>

<item>
<title>Draw that constellation!</title>
<description>Draw your very own star constellation, 25 line limit again.</description>
<link>http://www.flashbangpop.com/scrapbook/draw_that_constellation.php</link>
<dc:creator>Sam</dc:creator>

<category>Scrapbook</category>
<pubDate>Wed, 18 Jan 2006 21:33:30 +0000</pubDate>
</item>
</channel>
</rss>

Sweet!

Jeff Wheeler
01-23-2006, 10:37 PM
I know, lunatic, that's what I used. ;)

Also, you can do [code] to demonstrate how to use as tags, and [code] to demonstrate how to use noparse tags to show the noparse tags (keep in mind, that last three has three consecutive [noparse] tags before the [code].

This post 20 [noparse] tags inside of it. :P

JoshuaJonah
01-24-2006, 03:14 PM
now... this had some serious insperation from Flash Hacks

bigmtnskier
01-24-2006, 06:28 PM
Ah, no... It is from this:
http://levitated.net/daily/levQuarterRound.html

:(

JoshuaJonah
01-24-2006, 06:33 PM
oh... i think maybe the flash hacks guy might have stolen it from there...:)