{"id":78,"date":"2007-05-10T17:30:13","date_gmt":"2007-05-11T01:30:13","guid":{"rendered":"http:\/\/dougmccune.com\/blog\/2007\/05\/10\/analyze-your-actionscript-code-with-this-apollo-app\/"},"modified":"2007-05-10T17:30:13","modified_gmt":"2007-05-11T01:30:13","slug":"analyze-your-actionscript-code-with-this-apollo-app","status":"publish","type":"post","link":"https:\/\/dougmccune.com\/blog\/2007\/05\/10\/analyze-your-actionscript-code-with-this-apollo-app\/","title":{"rendered":"Analyze your ActionScript code with this Apollo app"},"content":{"rendered":"<p>This is a little Apollo app I whipped up so I could analyze the Flex SDK source code. It analyzes actionscript code and produces some basic stats: number of files, breakdown of lines of code (comments versus whitespace versus real code), and it counts functions and variables. Not really useful for anything in real life, I was just curious how large the Flex SDK was, so I wanted a way to figure that out. <\/p>\n<p>When it first loads it tries to locate the location of the Flex SDK source if it can find it on your computer. You can change that to scan whatever directory you want. Be aware it&#8217;s going to recursively loop over every subdirectory, and it you set it to scan your root folder it might hang for a while.<\/p>\n<p>Oh, and a secret note: if you drag the bottom right corner of the app you can resize it.<\/p>\n<p>So some stats just for fun:<\/p>\n<p><a href=\"http:\/\/livedocs.adobe.com\/flex\/201\/langref\/index.html\">Flex SDK<\/a>: 287,661 lines of code<br \/>\n<a href=\"http:\/\/flexlib.net\">FlexLib<\/a>: 17,885 lines of code<br \/>\nThis Apollo app: 1,018 lines of code<\/p>\n<p><a href=\"http:\/\/dougmccune.com\/flex\/ASCodeAnalyzer\/ASCodeAnalyzer.air\">Download the .air file here<\/a> to install the Apollo app.<\/p>\n<p>Some screenshots:<br \/>\n<img data-recalc-dims=\"1\" decoding=\"async\" id=\"image74\" src=\"https:\/\/i0.wp.com\/dougmccune.com\/blog\/wp-content\/uploads\/2007\/05\/apolloapp1.jpg?w=696&#038;ssl=1\" alt=\"apolloapp1.jpg\" \/><br \/>\n<img data-recalc-dims=\"1\" decoding=\"async\" id=\"image75\" src=\"https:\/\/i0.wp.com\/dougmccune.com\/blog\/wp-content\/uploads\/2007\/05\/apolloapp2.jpg?w=696&#038;ssl=1\" alt=\"apolloapp2.jpg\" \/><br \/>\n<img data-recalc-dims=\"1\" decoding=\"async\" id=\"image76\" src=\"https:\/\/i0.wp.com\/dougmccune.com\/blog\/wp-content\/uploads\/2007\/05\/apolloapp3.jpg?w=696&#038;ssl=1\" alt=\"apolloapp3.jpg\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a little Apollo app I whipped up so I could analyze the Flex SDK source code. It analyzes actionscript code and produces some basic stats: number of files, breakdown of lines of code (comments versus whitespace versus real code), and it counts functions and variables. Not really useful for anything in real life, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[2],"tags":[5],"class_list":["post-78","post","type-post","status-publish","format-standard","hentry","category-flex","tag-apollo"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/dougmccune.com\/blog\/wp-json\/wp\/v2\/posts\/78","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dougmccune.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dougmccune.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dougmccune.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dougmccune.com\/blog\/wp-json\/wp\/v2\/comments?post=78"}],"version-history":[{"count":0,"href":"https:\/\/dougmccune.com\/blog\/wp-json\/wp\/v2\/posts\/78\/revisions"}],"wp:attachment":[{"href":"https:\/\/dougmccune.com\/blog\/wp-json\/wp\/v2\/media?parent=78"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dougmccune.com\/blog\/wp-json\/wp\/v2\/categories?post=78"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dougmccune.com\/blog\/wp-json\/wp\/v2\/tags?post=78"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}