Skip navigation
Currently Being Moderated

Could not resolve <Application> to a component implementation.

Nov 18, 2009 3:19 AM

 

Hi..

Am getting an error message Could not resolve <Application> to a component implementation. Am trying the following mxml code.

 

<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2008/08/25/saving-files-locally-using-the-filereference-classs-save-method-in-flash-player-10/ -->
<Application name="FileReference_save_test"
        xmlns="http://ns.adobe.com/mxml/2009"
        xmlns:mx="library:adobe/flex/halo"
        xmlns:net="flash.net.*"
        layout="flex.layout.BasicLayout"
        creationComplete="init();">
 
    <Script>
        <![CDATA[
            private function init():void {
                textArea.text = describeType(FileReference).toXMLString();
            }
 
            private function btn_click(evt:MouseEvent):void {
                fileReference.save(textArea.text, "describeType.txt");
            }
        ]]>
    </Script>
 
    <Declarations>
        <net:FileReference id="fileReference" />
    </Declarations>
 
    <mx:Panel id="panel"
            width="500"
            height="300"
            verticalCenter="0"
            horizontalCenter="0">
        <mx:TextArea id="textArea"
                editable="true"
                width="100%"
                height="100%" />
        <mx:ControlBar horizontalAlign="right">
            <Button id="btn"
                    label="Save Text"
                    click="btn_click(event);" />
        </mx:ControlBar>
    </mx:Panel>
 
</Application>..

Help plz..
 
Replies
  • Currently Being Moderated
    Nov 18, 2009 5:47 AM   in reply to Aloseous

    You have <Application> but you need <s:Application> (Flex 4) or <mx:Application> (Flex3). Change the closing tag as well.

     

    If this post answers your question or helps, please mark it as such.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 18, 2009 9:26 AM   in reply to Aloseous

    You are missing the namespaces:

     

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

     

    If this post answers your question or helps, please mark it as such.

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 27, 2010 3:23 AM   in reply to Aloseous

    H

    since updating to the latest nightly build of the sdk, I get the same error for DataGrids, Images and Text. I have the namespaces in place as discussed above. Anything I missed?

     
    |
    Mark as:
  • Currently Being Moderated
    Aug 28, 2011 5:27 AM   in reply to hedberg.biz

    Hi hedberg.biz,

                                i have faced the similiar issue.I came across this article .Hope this could help you to solve the issue

     

    [Refer this link]

     
    |
    Mark as:
  • Currently Being Moderated
    May 22, 2012 2:37 AM   in reply to Gregory Lafrance

    Hi Gregory,

     

    These are the contents of my file, in accordance with the new namespaces that you have suggested.

    --

    <?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" >

       

          <s:Script>

          </s:Script>

         

    </s:Application>

    --

     

    Hower I still get the error "Error: Could not resolve <s:Application> to a component implementation."

     

    Could you please let me know what could be the problem?

     

    Regards,

     

    Karthik.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points