Skip navigation
Currently Being Moderated

Has anyone received an error in Flash Builder like this?

Mar 26, 2012 11:48 AM

Tags: #error #flex #actionscript

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>

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points