1 Reply Latest reply on Nov 29, 2007 10:13 AM by Gene Godsey

    Error Message 1061

    Gene Godsey Level 1
      I get the error:
      1061: Call to a possibly undefined method show through a reference with static type class.

      Here is the code......................
      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="vertical">

      <mx:Script>
      <![CDATA[
      import mx.controls.Alert;

      private function handleClickEvent(event:Event):void {
      trace("This is a click test.");
      Alert.show("test");
      }
      ]]>
      </mx:Script>

      <mx:Button label="Click" click="handleClickEvent(event)"/>

      </mx:Application>

      Thanks,
      Gene