3 Replies Latest reply on Oct 5, 2007 3:38 PM by Gaurav J

    stage.window Change ?

      Am I missing something? i cant get this to work anymore, I even have flash.display.stage and nativewindow imported.
      Worked fine in the last release. Has this been changed?

        • 1. Re: stage.window Change ?
          Gaurav J Adobe Employee
          What error are you getting? Are you getting error at compile time or run time?

          Your question seems to specific to AIR project. In the latest release the initialWindow thing means

          <rootContent>[generated swf message]</rootContent>

          now needs to be
          <content>[generated swf message]</content>

          in the app.xml file for your project.

          Gaurav Jain
          Flex SDK Team
          • 2. Re: stage.window Change ?
            manteratech Level 1
            This is what I have in my Code:
            <mx:Image mouseDown="stage.window.startMove()" x="0" y="0" source="{main}" alpha="0.98"/>
            <mx:Button x="961" y="5" height="23" width="23" click="stage.window.close();" alpha="0.0"/>
            <mx:Button x="930" y="5" height="23" width="23" click="stage.window.minimize();" alpha="0.0"/>

            Im getting this as an error:

            Severity and Description Path Resource Location Creation Time Id
            1119: Access of possibly undefined property window through a reference with static type flash.display:Stage.

            Im at a loss.
            • 3. Re: stage.window Change ?
              Gaurav J Adobe Employee
              Are you trying to access it statically.

              Can you declare a variable which referces Stage.window and then use that variable to call methods in the <mx:Button> tags?