2 Replies Latest reply: Mar 26, 2012 2:09 PM by 56231 RSS

    Has anyone received an error in Flash Builder like this?

    56231 Community Member

      access of undefined property variable01.

      access of undefined property pattern.

       

      I don't see a problem with the code, yet the error persists.

       

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

                     creationComplete="init(event);"

                     minWidth="955" minHeight="600" backgroundColor="#cbd8e6">

          <fx:Declarations>

              <!-- Place non-visual elements (e.g., services, value objects) here -->

          </fx:Declarations>

          <fx:Script>

              <![CDATA[

             

              var variable01:String;

              variable01 = "1";

       

              var pattern:RegExp;

              pattern = /^[0-9]{1,3}$/;

       

              pattern.test(variable01);

                 

              ]]>

          </fx:Script>

      </s:Application>