{"id":65,"date":"2010-02-12T00:54:26","date_gmt":"2010-02-12T05:54:26","guid":{"rendered":"http:\/\/www.danielansari.com\/wordpress\/?p=65"},"modified":"2010-02-12T00:54:26","modified_gmt":"2010-02-12T05:54:26","slug":"adobe-flex-builder-3-problems-in-64-bit-windows","status":"publish","type":"post","link":"http:\/\/www.danielansari.com\/wordpress\/2010\/02\/adobe-flex-builder-3-problems-in-64-bit-windows\/","title":{"rendered":"Adobe Flex Builder 3 problems in 64-bit Windows"},"content":{"rendered":"<p>Making the move to Windows 7 Professional 64 brought about a plethora of problems, some minor and some not so minor.<\/p>\n<p>Fortunately most of the troubles were shared with other developers, and information is there to be found using our favourite search engines.<\/p>\n<p>If you&#8217;re a Flex developer, like me, you might not have as much luck.\u00a0 If you&#8217;ve downloaded the latest (stable) Flex SDK\u20143.4.1 at the time of this writing\u2014it&#8217;s not possible to set up your &#8220;Installed Flex SDKs&#8221;, in order to set this SDK as the compiler default from the Preferences dialog.\u00a0 That&#8217;s because of an issue on current x64 Windows where <a href=\"https:\/\/blogs.msdn.com\/alejacma\/archive\/2009\/08\/11\/controls-won-t-get-resized-once-the-nesting-hierarchy-of-windows-exceeds-a-certain-depth-x64.aspx\">controls won&#8217;t get resized once the nesting hierarchy of windows exceeds a certain depth<\/a>, which was referred to from the <a href=\"http:\/\/cookbooks.adobe.com\/post_Flex_Builder_3_on_Windows_Vista_64_bits_issues-12826.html\">only useful information I could find about this specific issue<\/a>.\u00a0 It&#8217;s also not possible to set many preferences, as certain project properties show up as blank, and certain buttons are missing.\u00a0 It&#8217;s absolutely abysmal that Adobe hasn&#8217;t remedied these issues; how does it expect developers to do any serious Flex development on 64 bit Windows that&#8217;s becoming mainstream?<\/p>\n<p>Fortunately, there is a workaround, at least for the issues that affected me.\u00a0 The solution lies in having a working copy of Flex Builder on a 32-bit Windows platform.\u00a0 Flex stores these preferences in %USERPROFILE%\\My Documents\\Flex Builder 3\\.metadata ( %USERPROFILE% is the environment variable with a typical value of &#8220;C:\\Documents and Settings\\{username}&#8221; on Windows XP, and &#8220;C:\\Users\\{username}&#8221; on Windows 7), and subfolders therein.<\/p>\n<p>To configure your installed Flex SDKs, first unzip your Flex SDK to &#8220;C:\\Program Files (x86)\\Adobe\\Flex Builder 3\\sdks&#8221; (or wherever it is on your system); there is a file at the top level called flex-sdk-description.xml.\u00a0 Open this up and make a note of the &lt;name&gt; element.\u00a0 Next, open the file &#8220;%USERPROFILE%\\My Documents\\Flex Builder 3\\.metadata\\.plugins\\org.eclipse.core.runtime\\.settings\\com.adobe.flexbuilder.project.prefs&#8221;.\u00a0 This is where you&#8217;ll insert the setting for com.adobe.flexbuilder.project.flex_sdks, making sure you use the SDK name noted earlier.\u00a0 My entire file looks like this (without the line breaks before &#8220;\\r\\n&#8221;):<\/p>\n<pre>#Wed Feb 10 17:49:32 EST 2010\r\neclipse.preferences.version=1\r\nplayerTrustFileCleaned30=true\r\ncom.adobe.flexbuilder.project.flex_sdks=&lt;?xml version\\=\"1.0\" encoding\\=\"UTF-8\"?&gt;\\r\\n&lt;sdks&gt;\r\n\\r\\n&lt;sdk location\\=\"C\\:\/Program Files (x86)\/Adobe\/Flex Builder 3\/sdks\/3.0.0\" name\\=\"Flex 3\"\/&gt;\r\n\\r\\n&lt;sdk defaultSDK\\=\"true\" location\\=\"C\\:\/Program Files (x86)\/Adobe\/Flex Builder 3\/sdks\/3.4.1\" name\\=\"Flex 3.4\"\/&gt;\r\n\\r\\n&lt;sdk location\\=\"C\\:\/Program Files (x86)\/Adobe\/Flex Builder 3\/sdks\/2.0.1\" name\\=\"Flex 2.0.1 Hotfix 3\"\/&gt;\\r\\n&lt;\/sdks&gt;\\r\\n\r\nflexBuilderVersion=3.0.194161<\/pre>\n<p>That fixes the first problem.<\/p>\n<p>My other main problem was that I needed to debug the Flex application, but I was unable to add the launch configuration under Run\/Debug Settings of the project properties\u2014the New, Duplicate, Edit, and Delete buttons are missing and cannot be activated via the Windows shortcut keys.\u00a0 If your project is called ProjectX, you&#8217;ll need to have a file called &#8220;%USERPROFILE%\\My Documents\\Flex Builder  3\\.metadata\\.plugins\\org.eclipse.debug.core\\.launches\\ProjectX.launch&#8221;.\u00a0 For me, the .launches folder wasn&#8217;t there, so I copied it from my 32-bit system.\u00a0 You can create the .launches folder manually, though not from Windows Explorer (you may have to use the command line).\u00a0 My file looks like this:<\/p>\n<pre>&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;<\/pre>\n<pre>&lt;launchConfiguration type=\"com.adobe.flexbuilder.debug.launchConfigurationType.flash\"&gt;<\/pre>\n<pre>&lt;stringAttribute key=\"com.adobe.flexbuilder.debug.ATTR_APPLICATION\" value=\"src\/ProjectX.mxml\"\/&gt;<\/pre>\n<pre>&lt;stringAttribute key=\"com.adobe.flexbuilder.debug.ATTR_DEBUG_URL\" value=\"http:\/\/localhost\/abcde\"\/&gt;<\/pre>\n<pre>&lt;stringAttribute key=\"com.adobe.flexbuilder.debug.ATTR_PROFILE_URL\" value=\"C:\\Projects\\ProjectX\\bin-debug\\ProjectX.html\"\/&gt;<\/pre>\n<pre>&lt;stringAttribute key=\"com.adobe.flexbuilder.debug.ATTR_PROJECT\" value=\"ProjectX\"\/&gt;<\/pre>\n<pre>&lt;stringAttribute key=\"com.adobe.flexbuilder.debug.ATTR_RUN_URL\" value=\"C:\\Projects\\ProjectX\\bin-debug\\ProjectX.html\"\/&gt;<\/pre>\n<pre>&lt;booleanAttribute key=\"com.adobe.flexbuilder.debug.ATTR_USE_DEFAULT_URLS\" value=\"false\"\/&gt;<\/pre>\n<pre>&lt;listAttribute key=\"org.eclipse.debug.core.MAPPED_RESOURCE_PATHS\"&gt;<\/pre>\n<pre>&lt;listEntry value=\"\/ProjectX\"\/&gt;<\/pre>\n<pre>&lt;listEntry value=\"\/ProjectX\/src\/ProjectX.mxml\"\/&gt;<\/pre>\n<pre>&lt;\/listAttribute&gt;<\/pre>\n<pre>&lt;listAttribute key=\"org.eclipse.debug.core.MAPPED_RESOURCE_TYPES\"&gt;<\/pre>\n<pre>&lt;listEntry value=\"4\"\/&gt;<\/pre>\n<pre>&lt;listEntry value=\"1\"\/&gt;<\/pre>\n<pre>&lt;\/listAttribute&gt;<\/pre>\n<pre>&lt;\/launchConfiguration&gt;<\/pre>\n<p>For any other properties, you can search for a relevant string in the .metadata folder of your 32-bit machine, then copy or create the appropriate file in your 64-bit system.\u00a0 It&#8217;s a pain, but at least you&#8217;ll be able to get your work done.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Making the move to Windows 7 Professional 64 brought about a plethora of problems, some minor and some not so minor. Fortunately most of the troubles were shared with other developers, and information is there to be found using our favourite search engines. If you&#8217;re a Flex developer, like me, you might not have as [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[12,6],"tags":[14,17,13,15,16],"_links":{"self":[{"href":"http:\/\/www.danielansari.com\/wordpress\/wp-json\/wp\/v2\/posts\/65"}],"collection":[{"href":"http:\/\/www.danielansari.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.danielansari.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.danielansari.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.danielansari.com\/wordpress\/wp-json\/wp\/v2\/comments?post=65"}],"version-history":[{"count":5,"href":"http:\/\/www.danielansari.com\/wordpress\/wp-json\/wp\/v2\/posts\/65\/revisions"}],"predecessor-version":[{"id":70,"href":"http:\/\/www.danielansari.com\/wordpress\/wp-json\/wp\/v2\/posts\/65\/revisions\/70"}],"wp:attachment":[{"href":"http:\/\/www.danielansari.com\/wordpress\/wp-json\/wp\/v2\/media?parent=65"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.danielansari.com\/wordpress\/wp-json\/wp\/v2\/categories?post=65"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.danielansari.com\/wordpress\/wp-json\/wp\/v2\/tags?post=65"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}