2 Replies Latest reply on May 16, 2011 9:52 AM by GordonSmith

    Could not resolve <fx:Script>(or <fx: Declarations>to a component implementation

    uguradiguzel

      Hi,

      I am trying to compile a file into swf using mxmlc in command line.  When it is a very simple mxml, compile is successful. But when the file  contaion the fx name space, I get a compile error like: could not  resolve COMPONENT_NAME to a component implementation.

      I have to be able to do this, without the help of Flash Builder  because I am working on a project where I will need to generate swf  files from mxml files  which we generate the code of.

       

      I tried it with SDK version 4.0.0.,  version 4.1.0 build 16076 and 4.5.0. build 20967. And I also tried it in 3 different computers. Note: Our notebooks has Windows 7 OS - locale:Turkish.

       

       

      I read that this error is specific to some locales like Turkish here: http://forums.adobe.com/message/892431#892431, . But I couldnt find the solution.

       

      Any suggestions?

       

      The simple code I am trying to compile is(which is generated by Flash Builder 4 and can be compiled there):

       

      <?xml version="1.0" encoding="utf-8"?>
      <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
                        xmlns:s="library://ns.adobe.com/flex/spark" 
                        xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
           <fx:Declarations>
                <!-- Place non-visual elements (e.g., services, value objects) here -->
           </fx:Declarations>
      </s:Application>