Title
Description
Body The Adobe Flex 3 documentation describes <a href="http://livedocs.adobe.com/flex/3/html/help.html?content=compiledeploy_3.html">Flex SDK Configuration</a>, and more specifically how to <a href="http://livedocs.adobe.com/flex/3/html/help.html?content=anttasks_5.html#207493">configure the source path and library path</a> for the <code>mxmlc</code> Flex Ant task used to compile Flash application files. I don't have Flex Builder, but I do have Flash CS3, so I can compile SWF files within the Flash IDE. However, I wanted to be able to build open source ActionScript without the requirement of a commercial product to compile Flash files, especially since I jump between Mac OS X and Windows XP as I am learning more. (Agus Santoso has blogged about <a href="http://asantoso.wordpress.com/2008/05/18/flex-3-sdk-command-line-development-with-example-on-linux/">Flex 3 sdk command line development with example on Linux</a>.) I have the Flex 3 SDK installed at the root of my user directory in Mac OS X: <pre><code>~/flex</code></pre> The structure of my documents looks like this: <pre><code>~/flex/classes ~/flex/data</code></pre> If I try to compile an ActionScript file that imports classes that I have in the classes directory, I will receive the following error, indicating that the classes are not being found. <pre><code>Error: A file found in a source-path 'AS3DModTutorial' must have the same name as the class definition inside the file 'AS3DmodTutorial'.</code></pre> The configuration file for the mxmlc Flex Ant task is stored here: <pre><code>~/flex/frameworks/flex-config.xml</code></pre> To configure the classpath, uncomment the following text: <pre><code><flex-config> <compiler> ... <!-- List of path elements that form the roots of ActionScript class hierarchies. --> <!-- not set --> <!-- <source-path> <path-element>string</path-element> </source-path> --> ... </compiler> </flex-config> </code></pre> Change the XML to: <pre><code> <source-path> <path-element>/Users/stephen/flex/classes</path-element> </source-path> </code></pre>
Section Tutorials Contact Journal About Home
Category Applications Design History Ideas Technology
Tags
Date
DesignProjectX | The digital sandbox of Stephen Bau