Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem with AIR and Flex 3

Former Member
0 Likes
742

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.

1 ACCEPTED SOLUTION
Read only

former_member10945
Contributor
0 Likes
706

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

3 REPLIES 3
Read only

former_member10945
Contributor
0 Likes
707

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

Read only

0 Likes
706

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.

Read only

0 Likes
706

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.