{"id":120,"date":"2008-12-11T00:00:05","date_gmt":"2008-12-11T07:00:05","guid":{"rendered":"https:\/\/actionsnippet.com\/?p=325"},"modified":"2008-12-11T00:00:05","modified_gmt":"2008-12-11T07:00:05","slug":"25-lines-contest","status":"publish","type":"post","link":"https:\/\/actionsnippet.com\/?p=120","title":{"rendered":"25 Lines Contest"},"content":{"rendered":"<pre class=\"brush: as3; title: ; notranslate\" title=\"\">\r\nfor (var i:int = 1; i&lt;26; i++) with(addChild(new TextField())) x = 10, y = i * 10, text = &quot;line&quot; + i;\r\n<\/pre>\n<p><i> code will create 25 TextFields that say &#8220;line1&#8221;, &#8220;line2&#8221;, &#8220;line3&#8221; etc&#8230;<\/i><\/p>\n<p>If you don&#8217;t already know, <a href=\"http:\/\/www.bit-101.com\/\">Keith Peters<\/a> has started up the <a href=\"http:\/\/www.25lines.com\">25 line actionscript contest<\/a> again&#8230; The first round of results are in and you can view the 12 finalists swfs and code <a href=\"http:\/\/www.25lines.com\/?page_id=139\">here<\/a>.<\/p>\n<p>I was particularly impressed with <a data-asruffle-linked=\"true\" href=\"http:\/\/www.25lines.com\/finalists\/0812\/034.swf\"> this one<\/a> <span class=\"asruffle-link\" data-swf=\"{&quot;url&quot;:&quot;http:\\\/\\\/www.25lines.com\\\/finalists\\\/0812\\\/034.swf&quot;,&quot;title&quot;:&quot;034&quot;,&quot;width&quot;:550,&quot;height&quot;:400,&quot;missing&quot;:false,&quot;allowScriptAccess&quot;:false}\"><button type=\"button\" hidden aria-expanded=\"false\">Play demo<span class=\"screen-reader-text\">: 034<\/span><\/button><\/span>&#8230;by Cay Garrido&#8230; when I looked at it I really couldn&#8217;t figure out how that kind of seemingly complex flocking could be done with 25 lines. You can see the code <a href=\"http:\/\/www.25lines.com\/finalists\/0812\/034.txt\">here<\/a>. <\/p>\n<p>Inspired by the entries, Peters created a <a href=\"http:\/\/www.bit-101.com\/blog\/?p=1740\">strange attractor in 6 lines<\/a>. <\/p>\n<p>I can&#8217;t wait to see next months entries.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>for (var i:int = 1; i&lt;26; i++) with(addChild(new TextField())) x = 10, y = i * 10, text = &quot;line&quot; + i; code will create 25 TextFields that say &#8220;line1&#8221;, &#8220;line2&#8221;, &#8220;line3&#8221; etc&#8230; If you don&#8217;t already know, Keith Peters has started up the 25 line actionscript contest again&#8230; The first round of results are [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[94],"tags":[3,4],"class_list":["post-120","post","type-post","status-publish","format-standard","hentry","category-misc","tag-actionscript","tag-flash"],"_links":{"self":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/posts\/120","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=120"}],"version-history":[{"count":0,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/posts\/120\/revisions"}],"wp:attachment":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=120"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=120"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=120"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}