Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hello World fails with "Error: Could not resolve <s:Application> to a component implementation"

I'm just starting with Adobe Flex on linux, and can't get the hello world example to work.

My application.mxml file is simply

<?xml version="1.0"?>

<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
    xmlns:mx="library://ns.adobe.com/flex/mx" 
    xmlns:s="library://ns.adobe.com/flex/spark">
    <s:layout>
        <s:VerticalLayout/>
    </s:layout>

    <s:Panel title="My Application">
        <s:Label text="Hello World" fontWeight="bold" fontSize="24"/>
    </s:Panel>
</s:Application>

I followed this guide to install Flex on linux (OpenSUSE 11.2), unzipping into /opt/flex.

And yet I get this error upon compiling:

/opt/flex> mxmlc -show-actionscript-warnings=true --strict=true /path/to/application.mxml
Loading configuration file /opt/flex/frameworks/flex-config.xml
/path/to/application.mxml(5): Error: Could not resolve <s:Application> to a component implementation.

    xmlns:s="library://ns.adobe.com/flex/spark">

I've gone through /opt/flex/frameworks/flex-config.xml and added ${flexlib} to all the path references as the post suggested. But still no luck.

Any ideas? Thanks.

like image 953
drpepper Avatar asked Jan 22 '23 09:01

drpepper


1 Answers

Which version of the SDK are you using? s:Application and other spark components were introduced in Flex 4 so this example will not work with Flex 3 sdk.

like image 108
Robert Bak Avatar answered May 17 '23 14:05

Robert Bak