6 Replies Latest reply on Dec 3, 2009 5:52 PM by cheftimo

    urgently need help with this

    Mancika

      Hi!!

      I urgently need help with this:

      When I compile this in Flex Builder 3 it says: The element type 'mx:Application' must be terminated by the matching end-tag '</mx:Application>'.

      but I have this end tag in my file, but when I try to switch from source view to desgin view it says, that: >/mx:Script> expected to terminate element at line 71, this is right at the end of the .mxml file. I have actionscript(.as) file for scripting data.

      This is the mxml code to terminate apllication tag which I did as you can see:

      MXML code:

      ****************************************************************************************** *************************************************************************************

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundGradientAlphas="[1.0, 1.0]" backgroundGradientColors="[#007200, #000200]" width="1024" height="768" applicationComplete="popolni_vse()">
      <mx:HTTPService id="bazaMME" url="lokalnabaza/baza_MME_svn.xml" showBusyCursor="true" resultFormat="e4x"/>
      <mx:Script source="dajzaj.as"/>
      <mx:states>
      <mx:State name="Galerije">
          <mx:SetProperty target="{panel1}" name="title" value="Galerije MME"/>
          <mx:SetProperty target="{panel2}" name="title" value="opis slik"/>
          <mx:SetProperty target="{panel3}" name="title" value="Opis Galerije"/>   
          <mx:AddChild relativeTo="{panel1}" position="lastChild">
          <mx:HorizontalList x="0" y="22" width="713.09863" height="157.39436" id="ListaslikGalerije"></mx:HorizontalList>
                  </mx:AddChild>
                  <mx:SetProperty target="{text1}" name="text" value="MME opisi galerij "/>
                  <mx:AddChild relativeTo="{panel1}" position="lastChild">
                      <mx:Label x="217" y="346" text="labela za test" id="izbr"/>
                  </mx:AddChild>
                  <mx:SetProperty target="{label1}" name="text" value="26. November 2009@08:06"/>
                  <mx:SetProperty target="{label1}" name="x" value="845"/>
                  <mx:SetProperty target="{label1}" name="width" value="169"/>
                  <mx:SetProperty target="{Gale}" name="text" value="plac za Galerije"/>
              </mx:State>
              <mx:State name="Projekti"/>
          </mx:states>
      <mx:MenuBar id="MMEMenu" labelField="@label" showRoot="true" fillAlphas="[1.0, 1.0]" fillColors="[#043D01, #000000]" color="#9EE499" x="8" y="24"
               itemClick="dajVsebino(event)" width="1006.1268" height="21.90141">

       

             <mx:XMLList id="MMEmenuModel">
                   <menuitem label="O nas">
                       <menuitem label="reference podjetja" name="refMME" type="check" groupName="one"/>
                       <menuitem label="reference direktor" name="refdir" type="check" groupName="one"/>
                    <menuitem label="Kontakt" name="podatMME" groupName="one" />
                    <menuitem label="Kje smo" name="lokaMME" type="check" groupName="one" />
                   </menuitem>           
                   <menuitem type="separator"/>
                   <menuitem label="Galerija">
                       <menuitem label="Slovenija" name="galSvn" type="check" groupName="one"/>
                       <menuitem label="Nemčija" name="galDeu" type="check" groupName="one" />
                   </menuitem>
                   <menuitem type="separator"/>
                   <menuitem label="projekti">
                       <menuitem label="Slovenija" name="projSvn" type="check" groupName="one"/>
                       <menuitem label="Nemčija" name="projDeu" type="check" groupName="one" />
                       <menuitem label="Madžarska" name="projHun" type="check" groupName="one"/>
                   </menuitem>
               </mx:XMLList>                       
               </mx:MenuBar>
          <mx:Label x="845" y="10" text="25. November 2009@08:21" color="#FFFFFF" width="169" height="18.02817" id="label1"/>
          <mx:Label x="746" y="10" text="zadnja posodobitev:" color="#FFFFFF"/>
          <mx:Panel x="9" y="57" width="743.02814" height="688.4507" layout="absolute" title="Plac za Vsebino" id="panel1">
              <mx:Text x="0" y="-0.1" text="MME vsebina" width="722.95776" height="648.4507" id="Gale"/>
          </mx:Panel>
          <mx:Label x="197.25" y="748.45" color="#FFFFFF" text="Copyright © 2009 MME d.o.o." fontSize="12" width="228.73239" height="20"/>
          <mx:Label x="463.35" y="748.45" text="izdelava spletnih strani: FACTUM d.o.o." color="#FBFDFD" fontSize="12" width="287.60565" height="20"/>
          <mx:Panel x="759" y="53" width="250" height="705.07043" layout="absolute" title="Plac za hitre novice" id="panel3">
              <mx:Text x="0" y="0" text="MME novice" width="230" height="665.07043" id="text1"/>
              <mx:Panel x="-10" y="325.35" width="250" height="336.61972" layout="absolute" title="začasna panela" color="#000203" themeColor="#4BA247" cornerRadius="10" backgroundColor="#4B9539" id="panel2">
                  <mx:Label x="145" y="53" text="vrednost" id="spremmen"/>
                  <mx:Label x="125" y="78" text="Label"/>
                  <mx:Label x="125" y="103" text="Label"/>
                  <mx:Label x="0" y="53" text="spremenljivka iz Menuja:"/>
                  <mx:Label x="45" y="78" text="Label"/>
                  <mx:Label x="45" y="103" text="Label"/>
              </mx:Panel>
          </mx:Panel>
          <mx:Label x="9.9" y="10" text="plac za naslov MME vsebine" id="MMEnaslov" color="#040000"/>
           </mx:states></mx:Application>