2008 Mar 28 2:29 PM
I tried to compile the following app into a SWF file using Flex 3 SDK
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"
title="Hello World">
<mx:Label text="Hello World" horizontalCenter="0" verticalCenter="0"/>
</mx:WindowedApplication>
To then compile it as an AIR app...
I used
amxmlc HelloWorld.mxml
However...I get the following error...
Can't load/find mx.core.WindowedApplication
I took this example from [ Creating your first AIR application with the Flex SDK|http://livedocs.adobe.com/flex/3/html/help.html?content=CommandLineTools_2.html]
Greetings,
Blag.
2008 Mar 28 2:36 PM
Looks like your compiler can't find the AIR SWC, trying adding it with a library option:
amxmlc -library-path+=[PATH TO airglobal.swc] -- myApp.mxml
Disclaimer:
I've never really compiled anything with the command line tools
2008 Mar 28 2:36 PM
Looks like your compiler can't find the AIR SWC, trying adding it with a library option:
amxmlc -library-path+=[PATH TO airglobal.swc] -- myApp.mxml
Disclaimer:
I've never really compiled anything with the command line tools
2008 Mar 28 2:50 PM
Dan:
Thanks for your quick answer -:) Gonna try that at home...
You may ask yourself...Why is Blag using the command tool? Easy...I own Flex Builder 2...But can't upgrade to Flex Builder 3 because Adobe homepage is not registered for Perú...Of course I could download Flex Builder 3 Trial...But is to heavy to download with my slow internet connection...
Also, I'm working in a pretty small wxRuby GUI to compile MXML into SWF and SWF into AIR...
Greetings,
Blag.
2008 Mar 28 4:58 PM
Ok...I'm a jerk...
If I use
amxmlc.exe HelloWorld.mxml
It gives me an error...But if I use...
amxmlc.bat HelloWorld.mxml
Everything works fine...I needed the extra parameters -;)
Greetings,
Blag.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |