{"id":303,"date":"2009-06-01T17:30:30","date_gmt":"2009-06-02T00:30:30","guid":{"rendered":"https:\/\/actionsnippet.com\/?p=1483"},"modified":"2009-06-01T17:30:30","modified_gmt":"2009-06-02T00:30:30","slug":"for-loop-fun","status":"publish","type":"post","link":"https:\/\/actionsnippet.com\/?p=303","title":{"rendered":"for loop Fun"},"content":{"rendered":"<pre class=\"brush: as3; title: ; notranslate\" title=\"\">\r\nvar leng:int = 10;\r\nfor (var i:int = 0, j:int = leng;  i &lt; leng; i++, j = leng - i){\r\n\ttrace(i, j);\r\n}\r\n\r\n\/*outputs\r\n0 10\r\n1 9\r\n2 8\r\n3 7\r\n4 6\r\n5 5\r\n6 4\r\n7 3\r\n8 2\r\n9 1\r\n*\/\r\n<\/pre>\n<p>Looping backwards and forwards.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>var leng:int = 10; for (var i:int = 0, j:int = leng; i &lt; leng; i++, j = leng &#8211; i){ trace(i, j); } \/*outputs 0 10 1 9 2 8 3 7 4 6 5 5 6 4 7 3 8 2 9 1 *\/ Looping backwards and forwards.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[121,94,37],"tags":[99,4],"class_list":["post-303","post","type-post","status-publish","format-standard","hentry","category-math","category-misc","category-one-liners","tag-actionsnippet","tag-flash"],"_links":{"self":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/posts\/303","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=303"}],"version-history":[{"count":0,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=\/wp\/v2\/posts\/303\/revisions"}],"wp:attachment":[{"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=303"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=303"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/actionsnippet.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=303"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}