1 Reply Latest reply on Feb 22, 2009 1:24 PM by Gregory Lafrance

    Actionscript  classes

    vertmonkee
      I am just learning Flex using Flex Builder 3.

      I'm having problems with what I am sure is a simple part of developing applications.

      If I create a new actionscript class such as this, in a file called NewNativeWindow.as

      package
      {
      import mx.controls.Alert;

      public class NewNativeWindow
      {
      public function NewNativeWindow()
      {
      Alert("Hello Ian");
      }

      }
      }

      In my mxml file how do I reference the NewNativeWindow function when I click on a button.

      Thanks for any help with this.