1 Reply Latest reply on Apr 29, 2007 1:17 PM by BLXWebMaster

    Call to a possibly undefined method

    Carl_Ballantyne
      Hi,
      I am very new to Flex but have been doing Flash Actionscript for a while now. I cannot for the life of me figure out why I keep getting the error 'Call to a possibly undefined method' when including actionscript code in my mxml file. For example I have the following within an mx:script tag.

      public function testName() {
      // do nothing
      }
      testName();

      But when I try and compile it complains that testName is undefined. I can compile the mxml file fine without these lines of code. I know the answer to this is probably something everyone except newbies know but I cannot find it. Thanks for any help.