I don't know about AIR, but this AS3 code works for exes, standalone swfs, and html-embedded:
stage.displayState = StageDisplayState.FULL_SCREEN Btw, have you checked if stage is not a null? As3 requires that the object that calls the stage is a child of the stage. If you're calling it from anything that's not a movieclip/sprite that's already part of the stage's display list, it will fail. Workarounds: place your code in the Main class or movie clips placed on the stage in the IDE. Alternatively, use ADDDED_TO_STAGE listener on movie clips or get the reference from a stage child. Cheers, Karina > -----Original Message----- > From: [email protected] [mailto:flashcoders- > [email protected]] On Behalf Of John R. Sweeney Jr > Sent: 07 April 2010 1:50 > To: Flash Coders List > Subject: Re: [Flashcoders] Full screen with AIR 1.5 > > But when I publish to a AIR app it creates a swf not a exe and the > fscommands only work in exe's, if I remember right. I'm using AIR > because > I'm using the HTMLLoader to load a clients website, inside of our > kiosk. > > Thanks, > John > > > on 4/6/10 11:51 AM, Glen Pike at [email protected] wrote: > > > Hi, > > > > Not sure about this, but we have been publishing for AIR from CS3 > - > > My app has the old fscommand("fullscreen") element in it too - which > > seems to work fine ;) > > > > Glen > > > John R. Sweeney Jr. > Interactive Multimedia Developer > > > OnDemand Interactive Inc > 945 Washington Blvd. > Hoffman Estates, IL 60169 > Office/Fax: 847.310.5959 > Cellular: 847.651.4469 > www.ondemandinteractive.com > > > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

