View Full Version : 2 quick Questions
GrannyGlow
04-17-2008, 05:37 PM
I have made my flash document. When I go to play the swf file and switch it to full screen, it enlarges the whole scene. Is there a way of setting it to be full screen, but just with black around.
Secondly, If there is a way to do this, how do you then set it so that only objects inside the screen area are displayed?
Cheers :)
xxneon
04-17-2008, 05:54 PM
you need to set the scaling in the publish settings to noscale..
or you can put it in the timeline with actionscript..
Stage.scaleMode = "noScale";
once you do that .. your contents will stay the same size.. but the stage size will change..
and then to make all your off stage elements not appear.. goto your main timeline and add a new top layer .. and make it a mask layer.. and then just stick a rectangle fill the size of the desired stage area you want people to see.. and then make all your lower laters be subject to the mask layer..
GrannyGlow
04-17-2008, 08:19 PM
Awesome. Cheers. :) Thought perhaps there would be an easier way. But never mind. Is there a way of making it so it's automatically full screen too?
xxneon
04-17-2008, 08:52 PM
if your talking about using Stage.displayState to kick flash into full screen mode.. no .. there has to be user interaction for that action to take place.. either by a mouse click or key press..
GrannyGlow
04-17-2008, 09:01 PM
Ok. Doesn't matter then. I just thought there would be a way of having it at full screen, or maximised from the start. Like often on flash things they are. But it won't matter.
cheers anyway. :)
xxneon
04-17-2008, 09:18 PM
you can have your flash app take up the full viewable area of the browser though if thats what you mean.. you can search google for Full Browser Flash to find alot on how to do that..
atomic
04-17-2008, 10:30 PM
http://www.tutorio.com/media/flash/liquid-demo.html
GrannyGlow
04-19-2008, 03:45 PM
Thanks for that. although, I may be wrong but, that's for internet is it not? Sorry I should have said, but mine won't be for the internet. Mine will be a flash CD-ROM. So can you have it so that when this is opened it plays the swf file in full screen?
atomic
04-19-2008, 06:03 PM
On a CD, it should be a projector file (.exe) and you would then use fscommand to set it fullscreen...
Make the stage's background color black...
On the first frame add...
fscommand("fullscreen", "true");
fscommand("allowscale", "false");
fscommand("menu", "false");
Publish as a projector file... Publish Settings...
GrannyGlow
04-20-2008, 03:51 PM
awesme. Thank you very much for that. That's loads better now. Cheers. :)
atomic
04-20-2008, 06:49 PM
Grrrrreat! ;)
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.