2 Replies Latest reply on Aug 24, 2009 12:39 AM by ron71nl

    FlexUnit access to stage possible?

    ron71nl

      Hi all,

       

      Is there anybody that uses FB4 and Flexunit, and has access to the stage? I'd like to test wheter sprites etc are added to the stage.

       

      I've only found this suggestion, but I can't get it to work.

       

      What I want in my setUp method of the testcase is something like:

       

      override public function setUp():void {

           super.setUp();    

       

          _player = new Player();

          stage.addChild(_player);

      }

       

       

      I'm using FB4 & flexunit 4.0.0.235740.

       

      If this is impossible, what's the use of flexunit for testing any widget?

       

      Ronaldo