5 Replies Latest reply on Jul 24, 2009 2:02 PM by msakrejda

    Less than operator compile bug?

    InfoCon_Brian Level 1

      Hello,

       

       

      I get a "invalid character or markup found in script block. Try surrounding your code with a CDATA block." complier error.

      In the following code.  When I remove the less than operator "<" and use any other comparison operator, the code

      complies correctly no problem.

       

      I haven't found a patch or service pack to fix the problem.

       

      Q: Is there a work around?

       

      Code Sample:

          <mx:Script>
                   private function traceDisplayList(container:DisplayObjectContainer, indentString:String = ""):void
              {
               var child:DisplayObject;
               for (var i:uint=0; (i < container.numChildren); i++)
                  {
                  child = container.getChildAt(i);
               trace(indentString, child, child.name);
               if (container.getChildAt(i) is DisplayObjectContainer)
              {
                  traceDisplayList(DisplayObjectContainer(child), indentString + "    ")

              }

                   }
              }
           </mx:Script>

      Platform:

      Flex Builder 3
      Version: 3.0.214193

       

      Eclipse Platform

      Version: 3.3.1.R33x_r20070911-_19UEkpF-B7Uh2hKy75y
      Build id: M20070921-1145

       

      OS: Windows Vista