GradleFX and Pure AS3 project
I've got a complex project with dependency SWC projects that builds a SWF from a pure action script project.
My problem is that the flex framework is not being included with the project so fails similarly to the following:
Error: The definition of base class ByteArrayAsset was not
found.
public class EmbeddedAssets_TestXML extends
mx.core.ByteArrayAsset
Error: The definition of base class BitmapAsset was not
found.
public class EmbeddedAssets_TestBitmap extends
mx.core.BitmapAsset
If I hard code the library path as a compiler option everything compiles fine. My question is how do I include the flexHome libs to the mxmlc compile of a pure AS3 project?
the mxmlc compile line:
Compiling with mxmlc
+configname=flex -load-config=
-external-library-path+=/Users/test/.gradle/gradleFx/sdks/077e5812d2941bb5ac9a63c9c4394c120886bc13/frameworks/libs/player/{targetPlayerMajorVersion}.{targetPlayerMinorVersion}/playerglobal.swc
-source-path+=/Volumes/Dev/projects/test1/src
-library-path+=/Volumes/Dev/projects/common.swc
-allow-source-path-overlap=false -as3=true -es=false
-omit-trace-statements=true -optimize=true -strict=true
-remove-unused-rsls=true -use-network=true -compress=true
-debug=false -static-link-runtime-shared-libraries=true
-swf-version=13 -output=/Volumes/Dev/projects/test1/build/test.swf
/Volumes/Dev/projects/test1/src/Main.as
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
| ? | Show this help |
|---|---|
| ESC | Blurs the current field |
Comment Form
| r | Focus the comment reply box |
|---|---|
| ^ + ↩ | Submit the comment |
You can use Command ⌘ instead of Control ^ on Mac
1 Posted by craigc on 21 Mar, 2013 05:12 AM
Answered my own question:
frameworkLinkage was set to 'none' but when I set it to merged, it was looking for Main.mxml
I changed the MainClass to be 'Main.as' and it works as expected.
Yennick Trevels closed this discussion on 21 Mar, 2013 06:39 AM.