3 Replies Latest reply on Mar 2, 2010 10:41 PM by Flex harUI

    Instantiating a flex component from an actionscript project


      Hi there,


      I am new to flex and am struggling to set a few things up.


      I'm building a debugging tool in Flex that will be used in my actionscript project.

      I am having trouble instantiating the tool. I've created a SWC from a flex library project, added this to the source of my actionscript project and then tried to instantiate the flex component from within my actionscript project by calling new DebuggingTool(). DebuggingTool is the name of my mxml file. When I run the actionscript project, I get this error:

      [Fault] exception, information=TypeError: Error #1009: Cannot access a property or method of a null object reference.
      Fault, FocusManager.as:694


      Can anyone please let me know what I'm doing wrong here?


      Thanks a lot