Hi John, I don't really have any links that could help you, but here's a simplified example from my code that might illustrate my point:
public function onFullScreen() { var s:Stage = Main.instance.stage; if (s.displayState != StageDisplayState.FULL_SCREEN){ s.displayState = StageDisplayState.FULL_SCREEN; } } This method is in a Model class that has no connection to the stage, and doesn't extend MovieClip or Sprite. This means that I simply used "stage.displayState" it would fail because stage would return null. So I'm using a roundabout way of retrieving the stage instance from my Main class, which is the Stage Owner (assigned to the stage in the Document properties of the Flash IDE). package { public class Main extends MovieClip{ static public var instance:Main; public function Main() { instance = this; } All this is provided that the stage returning null is your problem in the first place... Have you tried running a trace on the stage variable? A simple trace("stage", stage) should tell you if this is your problem. If it doesn't return a null, then your problem might be elsewhere. I'm not familiar with AIR, so I couldn't help you there. Karina > -----Original Message----- > From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders- > boun...@chattyfig.figleaf.com] On Behalf Of John R. Sweeney Jr > Sent: 13 April 2010 8:44 > To: Flash Coders List > Subject: Re: [Flashcoders] Full screen with AIR 1.5 > > Hi Karina, > > I really sorry to bother you, but nothing I'm trying is working. Would > you > by any chance have an example or a link I could look at to figure this > one > out? I've been all over the Adobe site and nothing is working. I keep > getting the window around the app, not full screen. > > I really would appreciate any help you could offer, because the > deadline is > getting very close and the whole kiosk is ready except for the full > screen > display. > > Thank you for anything you can do, > John > > > > on 4/7/10 5:43 AM, Karina Steffens at kar...@neo-archaic.net wrote: > > > 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 > > > 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 > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders