0

I'm a NewBie with Royale-Apache, When I'm running "helloWorld" program. But I don't know why error: "This tag could not be resolved to an ActionScript class. It will be ignored." away show when I run mxmlc src/hello.mxml(I use @apache-royale/royale-js npm) in teminal.

My code here :

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="library://ns.apache.org/royale/mx">
    <mx:initialView>
        <mx:View>
            <mx:Label text="Hello" />
        </mx:View>
    </mx:initialView>
</mx:Application>

My Folder :

enter image description here

Output: enter image description here I have two question:

  1. Where did I go wrong?
  2. What is mxmlns:mx/js/j/s tag at head?

Thank you so much!

2 Answers2

0

Try adding +configname=flex as an mxmlc option

yishayw
  • 151
  • 2
0

I think maybe is <mx:initialView> tag initialView is only for jewel application component, because jewell application is not a view component. If you use mx emulation, the mx:Application is a view component, so you only need remove the initialView tag.

But IMO if you havent any program to migrate, is better start with jewel library , because mx is not completed, and is only for mocking purposes.