2 Replies Latest reply on Sep 17, 2010 10:50 AM by MyersJ22

    Start Tags and End Tags problem. Help?

    MyersJ22

      I am new to Flex and am trying to learn it. I am writing my own application using Flash Builder 4 and it is giving me the following error for line 37:

      Quote:

      "The element type 's:NavigatorContent' must be terminated by the matching end-tag ''.

      What I do not get is that I do have my end tag for s:NavigatorContent there. When I clock on the +&- sign on the left to close or open that particular block of code, it recognizes that it has an end tag. I do not see how I am getting this error. Can anyone help me figure this out and possibly provide a solution? Below I have provided my script. I've bolded the area of problem's beginning and ending tags.

      Script:

      <?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="1500" minHeight="600" width="800" height="600">
          <fx:Declarations>
          </fx:Declarations>
          <s:Label x="406.05" y="8" text="Dreamweaving" fontFamily="Times New Roman" fontWeight="bold" textDecoration="none" fontSize="36"/>
          <s:Label x="445.6" y="43" text="[Game Update: 1.0.0] [Site Version: 1.0.0] [Last Updated: 16.9.2010]" fontFamily="Times New Roman" fontSize="12"/>
          <mx:HRule x="10" y="54" width="780"/>
          <mx:VRule x="10" y="54" height="536"/>
          <mx:HRule x="10" y="589.35" width="780"/>
          <mx:VRule x="789" y="55" height="535"/>
          <mx:TabNavigator x="9.45" y="54.2" width="780" height="537">
              <s:NavigatorContent label="Index" width="800" height="100%" fontFamily="Times New Roman">
                  <mx:Accordion x="0" y="0" width="200" height="100%">
                      <s:NavigatorContent label="Welcome" width="100%" height="100%">
                          <s:RichText x="2" y="2" text="Hello World! This website is currently under construction though welcome to it!" width="194" height="436"/>
                      </s:NavigatorContent>
                      <s:NavigatorContent label="Affiliates" width="100%" height="100%">
                      </s:NavigatorContent>
                      <s:NavigatorContent label="Contact" width="100%" height="100%">
                      </s:NavigatorContent>
                  </mx:Accordion>
                  <mx:TextArea x="200" y="0" width="578" height="504" enabled="true" editable="false" verticalScrollPolicy="auto" maxChars="0"/>
                      <mx:HtmlText>
                          <center>
                              <h1>
                                  Hello World!
                              </h1>
                          </center>
                          <br>
                              This website is currently under construction though welcome to it!
                          </br>
                      </mx:HtmlText>
                  </mx:TextArea>
              </s:NavigatorContent>
              <s:NavigatorContent label="Mapping" width="100%" height="100%" fontFamily="Times New Roman">
              </s:NavigatorContent>
              <s:NavigatorContent label="DragonSpeak" width="200" height="100%" fontFamily="Times New Roman">
                  <mx:Accordion x="0" y="0" width="200" height="100%">
                      <s:NavigatorContent label="Basics" width="100%" height="100%">
                      </s:NavigatorContent>
                      <s:NavigatorContent label="Variables" width="100%" height="100%">
                      </s:NavigatorContent>
                      <s:NavigatorContent label="Strings" width="100%" height="100%">
                      </s:NavigatorContent>
                      <s:NavigatorContent label="Arrays" width="100%" height="100%">                
                      </s:NavigatorContent>                           
                  </mx:Accordion>
              </s:NavigatorContent>
              <s:NavigatorContent label="PhoenixSpeak" width="100%" height="100%" fontFamily="Times New Roman">
              </s:NavigatorContent>
              <s:NavigatorContent label="Patching" width="100%" height="100%" fontFamily="Times New Roman">
              </s:NavigatorContent>
              <s:NavigatorContent label="Resources" width="100%" height="100%" fontFamily="Times New Roman">     
              </s:NavigatorContent>
              <s:NavigatorContent label="Downloads" width="100%" height="100%" fontFamily="Times New Roman">
              </s:NavigatorContent>
          </mx:TabNavigator>
      </s:Application>
        • 1. Re: Start Tags and End Tags problem. Help?
          jfb00 Level 3

          Hi,

          Take a look very close to your code.

          Here is the fix:

          <s:NavigatorContent label="Index" width="800" height="100%" fontFamily="Times New Roman">
                     <mx:Accordion x="0" y="0" width="200" height="100%">
                          <s:NavigatorContent label="Welcome" width="100%" height="100%">
                              <s:RichText x="2" y="2" text="Hello World! This website is currently under construction though welcome to it!" width="194" height="436"/>
                          </s:NavigatorContent>
                          <s:NavigatorContent label="Affiliates" width="100%" height="100%">
                          </s:NavigatorContent>
                          <s:NavigatorContent label="Contact" width="100%" height="100%">
                          </s:NavigatorContent>
                      </mx:Accordion>
                      <mx:TextArea x="200" y="0" width="578" height="504" enabled="true" editable="false" verticalScrollPolicy="auto" maxChars="0">
                          <mx:htmlText>
                              <![CDATA[
                              Hello World!
                              <br>
                              This website is currently under construction though welcome to it!
                              </br>
                              ]]>
                          </mx:htmlText>
                    
                      </mx:TextArea>
                  </s:NavigatorContent>

           

          Johnny

          • 2. Re: Start Tags and End Tags problem. Help?
            MyersJ22 Level 1

            Now for some reason some tags like "h1" or "center" do not work though I can always work around that. Thank you for taking the time out to help me on the main problem!