{"id":26,"date":"2007-05-27T11:22:50","date_gmt":"2007-05-27T16:22:50","guid":{"rendered":"http:\/\/www.lonhosford.com\/lonblog\/2007\/05\/27\/the-mxmlc-source-path-app-path-structure\/"},"modified":"2014-03-16T12:59:48","modified_gmt":"2014-03-16T17:59:48","slug":"the-mxmlc-source-path-app-path-structure","status":"publish","type":"post","link":"https:\/\/www.lonhosford.com\/lonblog\/2007\/05\/27\/the-mxmlc-source-path-app-path-structure\/","title":{"rendered":"Using MXMLC for Sharing Common Libraries"},"content":{"rendered":"<p>When using mxmlc (the Flash Flex AS3 command line compiler) I wanted to create a folder structure for sharing a common libraries but for different examples and apps that have their own sibling folders. This would keep the parent folder of both the library and the apps clean.<\/p>\n<p>Ex:<\/p>\n<p>com.hosford.core<\/p>\n<p>com.hosford.controls<\/p>\n<p>apps.clock<\/p>\n<p>apps.diceRoller<\/p>\n<p>I use Windows and batch files for mxmlc. I prefer to copy a new version of the batch for each need and edit rather than type at the command line. Thus I can just click the batch file in a Window for each iteration.<\/p>\n<p>I also do not use any environment variables so the batch file allows for hard paths were needed.<\/p>\n<p>Assume in apps.clock the source file was ClockApp.as<\/p>\n<p>Its package would be:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">package apps.clock{<\/pre>\n<p>The imports are as you can expect:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">import com.hosford.controls.* <\/pre>\n<p>The mxmlc line is in a Windows batch file is as follows:<br \/>\n<code><\/p>\n<p>\"C:\\Program Files\\Adobe\\Flex Builder 2\\Flex SDK 2\\bin\\mxmlc.exe\" \"-source-path+=..\/..\/\" \"-file-specs=ClockApp.as\"<\/p>\n<p><\/code><br \/>\nThe -source-path option is the item that allows ClockApp.as to find the com libraries. The += adds to any environment path you also have.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When using mxmlc (the Flash Flex AS3 command line compiler) I wanted to create a folder structure for sharing a common libraries but for different examples and apps that have their own sibling folders. This would keep the parent folder of both the library and the apps clean. Ex: com.hosford.core com.hosford.controls apps.clock apps.diceRoller I use [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[3],"class_list":["post-26","post","type-post","status-publish","format-standard","hentry","category-general","tag-adobe-flash"],"_links":{"self":[{"href":"https:\/\/www.lonhosford.com\/lonblog\/wp-json\/wp\/v2\/posts\/26","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lonhosford.com\/lonblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lonhosford.com\/lonblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lonhosford.com\/lonblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lonhosford.com\/lonblog\/wp-json\/wp\/v2\/comments?post=26"}],"version-history":[{"count":3,"href":"https:\/\/www.lonhosford.com\/lonblog\/wp-json\/wp\/v2\/posts\/26\/revisions"}],"predecessor-version":[{"id":3329,"href":"https:\/\/www.lonhosford.com\/lonblog\/wp-json\/wp\/v2\/posts\/26\/revisions\/3329"}],"wp:attachment":[{"href":"https:\/\/www.lonhosford.com\/lonblog\/wp-json\/wp\/v2\/media?parent=26"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lonhosford.com\/lonblog\/wp-json\/wp\/v2\/categories?post=26"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lonhosford.com\/lonblog\/wp-json\/wp\/v2\/tags?post=26"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}