{"id":338,"date":"2008-09-27T08:21:43","date_gmt":"2008-09-27T16:21:43","guid":{"rendered":"http:\/\/dougmccune.com\/blog\/2008\/09\/27\/if-you-steal-source-code-dont-ask-for-help-fixing-it\/"},"modified":"2013-06-09T19:39:47","modified_gmt":"2013-06-10T03:39:47","slug":"if-you-steal-source-code-dont-ask-for-help-fixing-it","status":"publish","type":"post","link":"https:\/\/dougmccune.com\/blog\/2008\/09\/27\/if-you-steal-source-code-dont-ask-for-help-fixing-it\/","title":{"rendered":"If you steal source code, don&#8217;t ask for help fixing it"},"content":{"rendered":"<p>While doing some research for my <a href=\"http:\/\/www.flashonthebeach.com\/sessions\/index.php?pageid=2189\">decompiling session<\/a> at <a href=\"http:\/\/www.flashonthebeach.com\/\">Flash on the Beach<\/a>, I came across <a href=\"https:\/\/store1.adobe.com\/cfusion\/webforums\/forum\/messageview.cfm?forumid=15&#038;catid=665&#038;threadid=1391848\">this gem of a post<\/a> on the Adobe ActionScript 3 message board. Someone posts a block of code and asks &#8220;I\u2019m getting 3 compiling errors when I test my flash movie: could you guys give me some advice on how to sort out these issues and correct them. its driving me crazy trying to resolve the problem.&#8221;<\/p>\n<p>And then he posts the code. And if you have ever decompiled any ActionScript code, it&#8217;s painfully obvious what the guy is doing: he&#8217;s ripping off someone else&#8217;s code, then complaining in the Adobe forum that he can&#8217;t figure out why it won&#8217;t compile, and asking people to fix his broken, stolen code.<\/p>\n<p>Here&#8217;s a snippet of his code:<\/p>\n<pre><code>\r\npublic function BEShell()\r\n        {\r\n1  0 39            instance = this;\r\n            Logger.target = new FirebugTarget();\r\n            var _loc_1:* = loaderInfo.loaderURL;\r\n            if (_loc_1.indexOf(\"env1\") != -1 || _loc_1.indexOf(\"Akqa\") != -1 \r\n                        || _loc_1.indexOf(\"dev.site.com\") != -1)\r\n            {\r\n            }\r\n            else\r\n            {\r\n                Logger.mode = Logger.PRODUCTION_MODE;\r\n                stage.addEventListener(KeyboardEvent.KEY_UP, keyHandler);\r\n            }\/\/ end else if\r\n            return;\r\n        }\/\/ end function\r\n<\/code><\/pre>\n<p>That&#8217;s very clearly, without question, decompiled code. It even has some extra line number information included in the dump! And that&#8217;s what was tripping the guy up. He couldn&#8217;t understand why that beginning line that starts with &#8220;1 0 39&#8230;&#8221; wouldn&#8217;t compile!<\/p>\n<p>Sometimes I&#8217;m just amazed by people. Like, really? You have the balls to steal someone&#8217;s code, then post it in a public forum and ask for help?<\/p>\n<p>And of course maybe I&#8217;m totally off base, maybe the guy works for the company that originally wrote the code (seems to be a Flash agency called <a href=\"http:\/\/akqa.com\/\">AKQA<\/a>) and maybe he just got pulled in to fix some co-workers work and they lost the original source and they need to use decompiled code since that&#8217;s all they have&#8230; yeah&#8230; maybe&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>While doing some research for my decompiling session at Flash on the Beach, I came across this gem of a post on the Adobe ActionScript 3 message board. Someone posts a block of code and asks &#8220;I\u2019m getting 3 compiling errors when I test my flash movie: could you guys give me some advice on [&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":[7,51],"class_list":["post-338","post","type-post","status-publish","format-standard","hentry","category-flex","tag-actionscript","tag-decompiling"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/dougmccune.com\/blog\/wp-json\/wp\/v2\/posts\/338","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=338"}],"version-history":[{"count":1,"href":"https:\/\/dougmccune.com\/blog\/wp-json\/wp\/v2\/posts\/338\/revisions"}],"predecessor-version":[{"id":1778,"href":"https:\/\/dougmccune.com\/blog\/wp-json\/wp\/v2\/posts\/338\/revisions\/1778"}],"wp:attachment":[{"href":"https:\/\/dougmccune.com\/blog\/wp-json\/wp\/v2\/media?parent=338"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dougmccune.com\/blog\/wp-json\/wp\/v2\/categories?post=338"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dougmccune.com\/blog\/wp-json\/wp\/v2\/tags?post=338"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}