{"id":99,"date":"2009-03-01T17:51:59","date_gmt":"2009-03-02T01:51:59","guid":{"rendered":"http:\/\/sambaker.net\/neattools\/?p=99"},"modified":"2009-03-01T17:51:59","modified_gmt":"2009-03-02T01:51:59","slug":"roadblock-ahead-update","status":"publish","type":"post","link":"https:\/\/sambaker.net\/neattools\/?p=99","title":{"rendered":"Roadblock Ahead (Update)"},"content":{"rendered":"<p>Ok, so easier than I thought. Hopefully.<\/p>\n<pre name=\"code\" class=\"AS3:nogutter:nocontrols\">\r\nfor (var i:int = 0; i < kid.length;i++)\r\n{\r\n\tkid[i].engine(connectList[i]);\r\n}\r\n<\/pre>\n<p>changed to:<\/p>\n<pre name=\"code\" class=\"AS3:nogutter:nocontrols\">\r\nfor (var i:String in kid)\r\n{\r\n\tkid[i].engine(connectList[i]);\r\n}\r\n<\/pre>\n<p>This iterates through the indexes of kid which are created using the output port of the originating modules. so they might look like this:<\/p>\n<pre name=\"code\" class=\"AS3:nogutter:nocontrols\">\r\nkid[0]==led1\r\nkid[9]==led2\r\n<\/pre>\n<p>and still work.  Not that I even know yet, if connections like the ones above would ever occur. Here's the proof:<br \/>\n<div id=\"swf55091\">This movie requires Flash Player 9<\/div>\n<script type=\"text\/javascript\">\n\tswfobject.embedSWF(\"source\/neattools12.swf\", \"swf55091\", \"400\", \"400\", \"9.0.0\", \"\", {}, {wmode: \"window\", menu: \"false\", quality: \"high\", bgcolor: \"#FFFFFF\", allowScriptAccess: \"always\"}, {});\n<\/script>\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ok, so easier than I thought. Hopefully. for (var i:int = 0; i < kid.length;i++) { kid[i].engine(connectList[i]); } changed to: for (var i:String in kid) { kid[i].engine(connectList[i]); } This iterates through the indexes of kid which are created using the output port of the originating modules. so they might look like this: kid[0]==led1 kid[9]==led2 and [&hellip;]\n<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/sambaker.net\/neattools\/index.php?rest_route=\/wp\/v2\/posts\/99"}],"collection":[{"href":"https:\/\/sambaker.net\/neattools\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sambaker.net\/neattools\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sambaker.net\/neattools\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/sambaker.net\/neattools\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=99"}],"version-history":[{"count":2,"href":"https:\/\/sambaker.net\/neattools\/index.php?rest_route=\/wp\/v2\/posts\/99\/revisions"}],"predecessor-version":[{"id":101,"href":"https:\/\/sambaker.net\/neattools\/index.php?rest_route=\/wp\/v2\/posts\/99\/revisions\/101"}],"wp:attachment":[{"href":"https:\/\/sambaker.net\/neattools\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=99"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sambaker.net\/neattools\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=99"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sambaker.net\/neattools\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=99"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}