6 Replies Latest reply on Oct 10, 2011 1:34 PM by leventaksu

    '<s:RemoteObject>' is not allowed to follow '<fx:Declarations>'

    leventaksu


      Hi,

      I am new to Flex.

       

      I have the following hello.mxml

       

       

       

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

       

      <fx:Declarations>

          <s:RemoteObject />

      </fx:Declarations>

       

      </s:Application>

       

      I am getting:

      Parse error: '<s:RemoteObject>' is not allowed to follow '<fx:Declarations>'. hello.mxml/hello/src line 6 Flex Problem

       

       

       

      I am using
      FlashBuilder plugin 4.0.1
      Flex SDK 4.1

      Eclipse Gallileo SR2

       

      I have removed eclipse/flash builder plugin and started with a fresh installation but I still get the same error.

      Something must be wrong somewhere.

      Thanks.