{"id":24228,"date":"2012-02-16T09:43:21","date_gmt":"2012-02-16T14:43:21","guid":{"rendered":"https:\/\/blogs.jetbrains.com\/idea\/?p=6686"},"modified":"2012-02-16T09:43:21","modified_gmt":"2012-02-16T14:43:21","slug":"new-flex-project-setup","status":"publish","type":"idea","link":"https:\/\/blog.jetbrains.com\/pt-br\/idea\/2012\/02\/new-flex-project-setup","title":{"rendered":"Improved Flex Project Setup in IntelliJ IDEA 11.1"},"content":{"rendered":"<p>Hi, Flash and Flex devs!<\/p>\n<p>We&#8217;ve been analyzing feedback from those of you who use <a href=\"http:\/\/www.jetbrains.com\/idea\" target=\"_blank\" rel=\"noopener\">IntelliJ IDEA<\/a> for Flex and ActionScript development. A common problem turns out to be complicated project setup. To address this issue in <a href=\"http:\/\/confluence.jetbrains.net\/display\/IDEADEV\/IDEA+11.1+EAP\" target=\"_blank\" rel=\"noopener\">IntelliJ IDEA 11.1<\/a>, we have reworked the user interface, all the way from module wizard and project setup to run\/debug configurations and AIR Packaging. <\/p>\n<p>We believe these changes will make product experience better for everyone, and especially for the users of Eclipse-based IDEs.<\/p>\n<p>Read on to see what we&#8217;ve changed so far. However, this isn&#8217;t final, as we count on more <strong>feedback from you<\/strong> to make additional improvements and polishing.<\/p>\n<p><!--more--><\/p>\n<p>Introducing a new fundamental concept: <strong>build configuration<\/strong>. Build configuration is a set of parameters that define how to produce SWF or SWC, HTML wrapper, AIR descriptor and installer, Android and iOS package from the module source. <strong>ActionScript\/Flex module<\/strong> can have one or more build configurations, thus allowing you to use the same code base to produce apps\/libs for different target platforms (Web, Desktop or Mobile), pure AS3 or Flex based app\/lib, use different SDKs, specific compiler options, etc.<\/p>\n<p>You no longer need to create different types of SDKs depending on your target platform. Now you just define the <strong>Flex SDK<\/strong>, and IntelliJ IDEA will automatically choose the correct subset of SWCs for each build configuration.<\/p>\n<p>The screenshot below shows a project with 2 modules: one of them (CommonLibs) produces a single pure ActionScript library, while the other (MyApp) has 3 Flex application build configurations: Mobile-, Desktop- and Web-targeted.<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-6702\" title=\"buildconfigs7\" src=\"http:\/\/blogs.jetbrains.com\/idea\/wp-content\/uploads\/2012\/02\/buildconfigs7.png\" alt=\"\" width=\"701\" height=\"377\" \/><\/p>\n<p>Build configurations give you an easy start with a small test project, as well as all the power to set up a huge multi-module enterprise level project with complex dependencies and various compiler options.<\/p>\n<p>At this point you might ask: how are source files highlighted if the corresponding module has several <span class=\"active\"><span class=\"translation\">contradictory build configurations? The answer is in the status bar (and the same item in the context menu) &#8211; there you can select which<\/span><\/span> of the configurations is used to highlight module sources:<\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-6704\" title=\"statusbarcombo2\" src=\"http:\/\/blogs.jetbrains.com\/idea\/wp-content\/uploads\/2012\/02\/statusbarcombo2.png\" alt=\"\" width=\"423\" height=\"143\" \/><\/p>\n<p>Hint: You can switch build configurations very quickly if you assign a keyboard shortcut to the action.<\/p>\n<p><strong>Run\/debug configurations<\/strong> were redesigned as well. Now there is a &#8216;Flash App&#8217; run configuration type that allows launching your app in the browser, on the desktop, mobile emulator or Android device, according to the selected build configuration:<\/p>\n<p><a href=\"http:\/\/blogs.jetbrains.com\/idea\/wp-content\/uploads\/2012\/02\/runc.png\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-6725\" title=\"runc\" src=\"http:\/\/blogs.jetbrains.com\/idea\/wp-content\/uploads\/2012\/02\/runc.png\" alt=\"\" width=\"543\" height=\"347\" \/><\/a><\/p>\n<p>IntelliJ IDEA 11.1 will open your Flex project and convert it to the new settings on the fly (having backed up previous settings), so it&#8217;s easy to start using new features in no time!<\/p>\n<p>If you find anything unclear or inconvenient, please leave your comments here, or reach us on the <a href=\"http:\/\/devnet.jetbrains.net\/community\/idea\/ideacommunity?view=discussions\" target=\"_blank\" rel=\"noopener\">forum<\/a> or the <a href=\"http:\/\/youtrack.jetbrains.net\/issues\/IDEA\" target=\"_blank\" rel=\"noopener\">issue tracker<\/a>.<\/p>\n<p>Let me remind you that we also provide <a href=\"http:\/\/blogs.jetbrains.com\/idea\/2012\/01\/profiling-cpu-in-flash-and-flex-applications-in-intellij-idea\/\" target=\"_blank\" rel=\"noopener\">Flash profiler<\/a> and <a href=\"http:\/\/plugins.intellij.net\/plugin\/?idea&amp;id=5845\" target=\"_blank\" rel=\"noopener\">Flex UI designer<\/a> plugins (we&#8217;ll post demos on the latter shortly).<\/p>\n<p>Happy Flash coding!<\/p>\n","protected":false},"author":1152,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","categories":[808],"tags":[2902,2956,2957,2958,2959,3031],"cross-post-tag":[],"acf":[],"_links":{"self":[{"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/idea\/24228"}],"collection":[{"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/idea"}],"about":[{"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/types\/idea"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/users\/1152"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/comments?post=24228"}],"version-history":[{"count":0,"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/idea\/24228\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/media?parent=24228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/categories?post=24228"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/tags?post=24228"},{"taxonomy":"cross-post-tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/pt-br\/wp-json\/wp\/v2\/cross-post-tag?post=24228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}