0 Replies Latest reply on Nov 20, 2007 9:50 PM by dynadan

    AS3Flex2b3StarterFiles dont work


      (I'm using FLASH CS3 for this... flex as3 and Flash as3 are the same right?)

      When I try to load the SimpleOutputUsage.as class I get an error:
      TypeError: Error #1009: Cannot access a property or method of a null object reference.
      at Output$iinit()
      at SimpleOutputUsage$iinit()
      at test_class_fla::MainTimeline/test_class_fla::frame1()

      Which I think is from this line:
      mainStage.addEventListener(Event.RESIZE, fitToStage);

      I think mainStage is not being set correctly....
      As I cannot trace in this Output.as file (local trace function overrides), I'm finding it hard to debug..

      I'm thinking that the is a problem with the order the objects are constructed.. perhaps the SimpleOutputUsage class isn't passing the stage variable properly?

      Can someone please advise as to how to fix the file or provide a working version.