[Flashcoders] FULL_SCREEN problem Flash CS3 and AS3

2008-11-04 Thread Cor
/*My goal:
I want to start my apps fullscreen whitout giving a user the
possibility to scale
or to encounter the app within a browser.
When I CLICK it goes to FULL_SCREEN, but it doesn't work when I try
to do this with other events.
Back to NORMAL does work on MOUSE_MOVE but not going back to
FULL_SCREEN.
How can I set it to FULL_SCREEN automatically?

And I also would like to get ride of the message Press Esc to exit
fullscreen mode?
Every help is welcome!
*/

//My code in the first and only frame
var screenCheck:Boolean = false;
// Prevent scaling items on the stage
var swfStage:Stage = this.stage;
swfStage.scaleMode = StageScaleMode.NO_SCALE;
swfStage.align = StageAlign.TOP;
// /

//container is a movieclip with a textfield and a shape in it.
container.addEventListener(MouseEvent.MOUSE_MOVE, fullScreenUP);
container.addEventListener(MouseEvent.CLICK, fullScreenUP);

function fullScreenUP(e:MouseEvent):void {
test.text = fullScreenUP triggered!;
if (screenCheck == false) {
stage.displayState = StageDisplayState.FULL_SCREEN;
screenCheck = true;
} else {
stage.displayState = StageDisplayState.NORMAL;
screenCheck = false;
}
}

/*
Kind regards
Cor
*/

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] FULL_SCREEN problem Flash CS3 and AS3

2008-11-04 Thread Glen Pike

Hi,

   I don't think you can go fullscreen automatically in the browser - 
it has to be in response to a Click event / user interaction - this is 
definitely the case for FP10 as it's one of the new Security Issues - 
not the one that Wordpress and others AJAXians are throwing their toys 
out of the pram about :)


   Again, don't think you can ever get rid of the message Press Esc to 
exit either - again, it's a system thing.
  
   For non-browser, do the fscommand fullscreen thing - I had to do 
this for AS3 standalone as well as the StageDisplayState before it worked.


   Glen

  


Cor wrote:

/*My goal:
I want to start my apps fullscreen whitout giving a user the
possibility to scale
or to encounter the app within a browser.
When I CLICK it goes to FULL_SCREEN, but it doesn't work when I try
to do this with other events.
Back to NORMAL does work on MOUSE_MOVE but not going back to
FULL_SCREEN.
How can I set it to FULL_SCREEN automatically?

And I also would like to get ride of the message Press Esc to exit
fullscreen mode?
Every help is welcome!
*/

//My code in the first and only frame
var screenCheck:Boolean = false;
// Prevent scaling items on the stage
var swfStage:Stage = this.stage;
swfStage.scaleMode = StageScaleMode.NO_SCALE;
swfStage.align = StageAlign.TOP;
// /

//container is a movieclip with a textfield and a shape in it.
container.addEventListener(MouseEvent.MOUSE_MOVE, fullScreenUP);
container.addEventListener(MouseEvent.CLICK, fullScreenUP);

function fullScreenUP(e:MouseEvent):void {
test.text = fullScreenUP triggered!;
if (screenCheck == false) {
stage.displayState = StageDisplayState.FULL_SCREEN;
screenCheck = true;
} else {
stage.displayState = StageDisplayState.NORMAL;
screenCheck = false;
}
}

/*
Kind regards
Cor
*/

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


  


--

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] FULL_SCREEN problem Flash CS3 and AS3

2008-11-04 Thread Cor
Thanks Glen!

I have to launch my apps from Moodle (LMS).
So it opens the apps in the browser.
Is it possible to start the app from a startpage.html and then fullscreen
without any browser things?

Kind regards
Cor

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Glen Pike
Sent: dinsdag 4 november 2008 19:43
To: Flash Coders List
Subject: Re: [Flashcoders] FULL_SCREEN problem Flash CS3 and AS3

Hi,

I don't think you can go fullscreen automatically in the browser - 
it has to be in response to a Click event / user interaction - this is 
definitely the case for FP10 as it's one of the new Security Issues - 
not the one that Wordpress and others AJAXians are throwing their toys 
out of the pram about :)

Again, don't think you can ever get rid of the message Press Esc to 
exit either - again, it's a system thing.
   
For non-browser, do the fscommand fullscreen thing - I had to do 
this for AS3 standalone as well as the StageDisplayState before it worked.

Glen

   

Cor wrote:
 /*My goal:
   I want to start my apps fullscreen whitout giving a user the
 possibility to scale
   or to encounter the app within a browser.
   When I CLICK it goes to FULL_SCREEN, but it doesn't work when I try
 to do this with other events.
   Back to NORMAL does work on MOUSE_MOVE but not going back to
 FULL_SCREEN.
   How can I set it to FULL_SCREEN automatically?

   And I also would like to get ride of the message Press Esc to exit
 fullscreen mode?
   Every help is welcome!
 */

 //My code in the first and only frame
 var screenCheck:Boolean = false;
 // Prevent scaling items on the stage
 var swfStage:Stage = this.stage;
 swfStage.scaleMode = StageScaleMode.NO_SCALE;
 swfStage.align = StageAlign.TOP;
 // /

 //container is a movieclip with a textfield and a shape in it.
 container.addEventListener(MouseEvent.MOUSE_MOVE, fullScreenUP);
 container.addEventListener(MouseEvent.CLICK, fullScreenUP);

 function fullScreenUP(e:MouseEvent):void {
   test.text = fullScreenUP triggered!;
   if (screenCheck == false) {
   stage.displayState = StageDisplayState.FULL_SCREEN;
   screenCheck = true;
   } else {
   stage.displayState = StageDisplayState.NORMAL;
   screenCheck = false;
   }
 }

 /*
 Kind regards
 Cor
 */

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


   

-- 

Glen Pike
01326 218440
www.glenpike.co.uk http://www.glenpike.co.uk

___
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


Re: [Flashcoders] FULL_SCREEN problem Flash CS3 and AS3

2008-11-04 Thread Anthony Pace

Hi,

Make a call from javascript; it has worked fine in past. 

I seem to remember being able to do it without user interaction in FP10; 
while in beta; yet, if things have changed like you said, (been under a 
rock..see my postings on job hell) then that code probably no longer works.


Thanks,
Anthony Pace

Glen Pike wrote:

Hi,

   I don't think you can go fullscreen automatically in the browser - 
it has to be in response to a Click event / user interaction - this is 
definitely the case for FP10 as it's one of the new Security Issues 
- not the one that Wordpress and others AJAXians are throwing their 
toys out of the pram about :)


   Again, don't think you can ever get rid of the message Press Esc 
to exit either - again, it's a system thing.
 For non-browser, do the fscommand fullscreen thing - I had to 
do this for AS3 standalone as well as the StageDisplayState before it 
worked.


   Glen

 
Cor wrote:

/*My goal:
I want to start my apps fullscreen whitout giving a user the
possibility to scale
or to encounter the app within a browser.
When I CLICK it goes to FULL_SCREEN, but it doesn't work when I try
to do this with other events.
Back to NORMAL does work on MOUSE_MOVE but not going back to
FULL_SCREEN.
How can I set it to FULL_SCREEN automatically?

And I also would like to get ride of the message Press Esc to exit
fullscreen mode?
Every help is welcome!
*/

//My code in the first and only frame
var screenCheck:Boolean = false;
// Prevent scaling items on the stage
var swfStage:Stage = this.stage;
swfStage.scaleMode = StageScaleMode.NO_SCALE;
swfStage.align = StageAlign.TOP;
// /

//container is a movieclip with a textfield and a shape in it.
container.addEventListener(MouseEvent.MOUSE_MOVE, fullScreenUP);
container.addEventListener(MouseEvent.CLICK, fullScreenUP);

function fullScreenUP(e:MouseEvent):void {
test.text = fullScreenUP triggered!;
if (screenCheck == false) {
stage.displayState = StageDisplayState.FULL_SCREEN;
screenCheck = true;
} else {
stage.displayState = StageDisplayState.NORMAL;
screenCheck = false;
}
}

/*
Kind regards
Cor
*/

___
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


Re: [Flashcoders] FULL_SCREEN problem Flash CS3 and AS3

2008-11-04 Thread Zeh Fernando
Fullscreen can only be activated on certain events, so you cannot hijack the
user browser to set the fullscreen mode.

Full-screen mode is initiated in response to a mouse click or key press by
the user; the movie cannot change Stage.displayState without user input

http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/display/Stage.html#displayState

If you want the site to work on fullscreen only, then make it in a way that
when displayState is set to normal, it displays a warning message and a
button that when clicked will get back to fullscreen.

You cannot get rid of the ESC message either.


Zeh

On Tue, Nov 4, 2008 at 3:13 PM, Cor [EMAIL PROTECTED] wrote:

 /*My goal:
I want to start my apps fullscreen whitout giving a user the
 possibility to scale
or to encounter the app within a browser.
When I CLICK it goes to FULL_SCREEN, but it doesn't work when I try
 to do this with other events.
Back to NORMAL does work on MOUSE_MOVE but not going back to
 FULL_SCREEN.
How can I set it to FULL_SCREEN automatically?

And I also would like to get ride of the message Press Esc to exit
 fullscreen mode?
Every help is welcome!
 */

 //My code in the first and only frame
 var screenCheck:Boolean = false;
 // Prevent scaling items on the stage
 var swfStage:Stage = this.stage;
 swfStage.scaleMode = StageScaleMode.NO_SCALE;
 swfStage.align = StageAlign.TOP;
 // /

 //container is a movieclip with a textfield and a shape in it.
 container.addEventListener(MouseEvent.MOUSE_MOVE, fullScreenUP);
 container.addEventListener(MouseEvent.CLICK, fullScreenUP);

 function fullScreenUP(e:MouseEvent):void {
test.text = fullScreenUP triggered!;
if (screenCheck == false) {
stage.displayState = StageDisplayState.FULL_SCREEN;
screenCheck = true;
} else {
stage.displayState = StageDisplayState.NORMAL;
screenCheck = false;
}
 }

 /*
 Kind regards
 Cor
 */

 ___
 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


RE: [Flashcoders] FULL_SCREEN problem Flash CS3 and AS3

2008-11-04 Thread Cor
Thanks Zeh.

I noticed the displayState description, but it didn't do the trick for me.

Is it possible to attach a fullscreen function to the ESC message, so when a
user pushes ESC the app will stay in fullscreen?

Kind regards
Cor

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Zeh Fernando
Sent: dinsdag 4 november 2008 20:00
To: Flash Coders List
Subject: Re: [Flashcoders] FULL_SCREEN problem Flash CS3 and AS3

Fullscreen can only be activated on certain events, so you cannot hijack the
user browser to set the fullscreen mode.

Full-screen mode is initiated in response to a mouse click or key press by
the user; the movie cannot change Stage.displayState without user input

http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/display/Stage.html#displ
ayState

If you want the site to work on fullscreen only, then make it in a way that
when displayState is set to normal, it displays a warning message and a
button that when clicked will get back to fullscreen.

You cannot get rid of the ESC message either.


Zeh

On Tue, Nov 4, 2008 at 3:13 PM, Cor [EMAIL PROTECTED] wrote:

 /*My goal:
I want to start my apps fullscreen whitout giving a user the
 possibility to scale
or to encounter the app within a browser.
When I CLICK it goes to FULL_SCREEN, but it doesn't work when I try
 to do this with other events.
Back to NORMAL does work on MOUSE_MOVE but not going back to
 FULL_SCREEN.
How can I set it to FULL_SCREEN automatically?

And I also would like to get ride of the message Press Esc to exit
 fullscreen mode?
Every help is welcome!
 */

 //My code in the first and only frame
 var screenCheck:Boolean = false;
 // Prevent scaling items on the stage
 var swfStage:Stage = this.stage;
 swfStage.scaleMode = StageScaleMode.NO_SCALE;
 swfStage.align = StageAlign.TOP;
 // /

 //container is a movieclip with a textfield and a shape in it.
 container.addEventListener(MouseEvent.MOUSE_MOVE, fullScreenUP);
 container.addEventListener(MouseEvent.CLICK, fullScreenUP);

 function fullScreenUP(e:MouseEvent):void {
test.text = fullScreenUP triggered!;
if (screenCheck == false) {
stage.displayState = StageDisplayState.FULL_SCREEN;
screenCheck = true;
} else {
stage.displayState = StageDisplayState.NORMAL;
screenCheck = false;
}
 }

 /*
 Kind regards
 Cor
 */

 ___
 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

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] FULL_SCREEN problem Flash CS3 and AS3

2008-11-04 Thread Merrill, Jason
 Is it possible to attach a fullscreen function to the ESC message, so when a
user pushes ESC the app will stay in fullscreen?

Why?  That's evil! :)  Unless it's a kiosk or something?

Jason Merrill
Bank of America Instructional Technology  Media   ·   GCIB  Staff Support 
LLD
Interested in Flash Platform technologies?  Join the Bank of America Flash 
Platform Developer Community 
Interested in innovative ideas in Learning?  Check out the Innovative Learning 
Blog and subscribe.


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] FULL_SCREEN problem Flash CS3 and AS3

2008-11-04 Thread Anthony Pace

Now you have me wanting to experiment with this again...

I have done this before for trapping keys for use in fullscreen for 
FP9... again not sure about FP10

...
Create a container and capture all events all events
|
based on event details javascript calls a function in flash
|
flash gets call and performs function
..

However, considering the restrictions with fullscree, you may want to 
simulate a user interaction and send that to the contained element in JS.


Does anyone think this might work? or am I of base.

Thanks,
Anthony Pace


Zeh Fernando wrote:

Fullscreen can only be activated on certain events, so you cannot hijack the
user browser to set the fullscreen mode.

Full-screen mode is initiated in response to a mouse click or key press by
the user; the movie cannot change Stage.displayState without user input

http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/display/Stage.html#displayState

If you want the site to work on fullscreen only, then make it in a way that
when displayState is set to normal, it displays a warning message and a
button that when clicked will get back to fullscreen.

You cannot get rid of the ESC message either.


Zeh

On Tue, Nov 4, 2008 at 3:13 PM, Cor [EMAIL PROTECTED] wrote:

  

/*My goal:
   I want to start my apps fullscreen whitout giving a user the
possibility to scale
   or to encounter the app within a browser.
   When I CLICK it goes to FULL_SCREEN, but it doesn't work when I try
to do this with other events.
   Back to NORMAL does work on MOUSE_MOVE but not going back to
FULL_SCREEN.
   How can I set it to FULL_SCREEN automatically?

   And I also would like to get ride of the message Press Esc to exit
fullscreen mode?
   Every help is welcome!
*/

//My code in the first and only frame
var screenCheck:Boolean = false;
// Prevent scaling items on the stage
var swfStage:Stage = this.stage;
swfStage.scaleMode = StageScaleMode.NO_SCALE;
swfStage.align = StageAlign.TOP;
// /

//container is a movieclip with a textfield and a shape in it.
container.addEventListener(MouseEvent.MOUSE_MOVE, fullScreenUP);
container.addEventListener(MouseEvent.CLICK, fullScreenUP);

function fullScreenUP(e:MouseEvent):void {
   test.text = fullScreenUP triggered!;
   if (screenCheck == false) {
   stage.displayState = StageDisplayState.FULL_SCREEN;
   screenCheck = true;
   } else {
   stage.displayState = StageDisplayState.NORMAL;
   screenCheck = false;
   }
}

/*
Kind regards
Cor
*/

___
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

  


___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] FULL_SCREEN problem Flash CS3 and AS3

2008-11-04 Thread Carolina Avila Coral

Hi:

I use two html pages to do that,  the main page only has the information to 
open the fullscreen, the second page has the swf link.  I hope it be useful 
for you.


main page:

script language=JavaScript type=text/JavaScript

!--

function MachakFull(Ie,other){

//Copyright © 1999 m.milicevic [EMAIL PROTECTED] [EMAIL PROTECTED]

x=screen.availWidth;

y=screen.availHeight;

target = 
parseFloat(navigator.appVersion.substring(navigator.appVersion.indexOf('.')-1,navigator.appVersion.length));


if((navigator.appVersion.indexOf(Mac)!=-1) 
(navigator.userAgent.indexOf(MSIE)!=-1) 
(parseInt(navigator.appVersion)==4))


window.open(other,sub,'scrollbars=yes');

if (target = 4){

if (navigator.appName==Netscape){

   var 
MachakFull=window.open(other,MachakFull,'scrollbars=yes','width='+x+',height='+y+',top=0,left=0');


MachakFull.moveTo(0,0);

MachakFull.resizeTo(x,y);}

if (navigator.appName==Microsoft Internet Explorer)

window.open(Ie,MachakFull,fullscreen=yes);

}

else window.open(other,sub,'scrollbars=yes');

}

function Close_Window()
{
var mywindow=window.self;
mywindow.opener=window.self;
mywindow.close();
}
//--
/script
/head

body onLoad=MachakFull('index_01.htm','')
body onBlur=Close_Window();

- Original Message - 
From: Cor [EMAIL PROTECTED]

To: 'Flash Coders List' flashcoders@chattyfig.figleaf.com
Sent: Tuesday, November 04, 2008 2:04 PM
Subject: RE: [Flashcoders] FULL_SCREEN problem Flash CS3 and AS3



Thanks Zeh.

I noticed the displayState description, but it didn't do the trick for me.

Is it possible to attach a fullscreen function to the ESC message, so when 
a

user pushes ESC the app will stay in fullscreen?

Kind regards
Cor

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Zeh 
Fernando

Sent: dinsdag 4 november 2008 20:00
To: Flash Coders List
Subject: Re: [Flashcoders] FULL_SCREEN problem Flash CS3 and AS3

Fullscreen can only be activated on certain events, so you cannot hijack 
the

user browser to set the fullscreen mode.

Full-screen mode is initiated in response to a mouse click or key press 
by

the user; the movie cannot change Stage.displayState without user input

http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/display/Stage.html#displ
ayState

If you want the site to work on fullscreen only, then make it in a way 
that

when displayState is set to normal, it displays a warning message and a
button that when clicked will get back to fullscreen.

You cannot get rid of the ESC message either.


Zeh

On Tue, Nov 4, 2008 at 3:13 PM, Cor [EMAIL PROTECTED] wrote:


/*My goal:
   I want to start my apps fullscreen whitout giving a user the
possibility to scale
   or to encounter the app within a browser.
   When I CLICK it goes to FULL_SCREEN, but it doesn't work when I 
try

to do this with other events.
   Back to NORMAL does work on MOUSE_MOVE but not going back to
FULL_SCREEN.
   How can I set it to FULL_SCREEN automatically?

   And I also would like to get ride of the message Press Esc to 
exit

fullscreen mode?
   Every help is welcome!
*/

//My code in the first and only frame
var screenCheck:Boolean = false;
// Prevent scaling items on the stage
var swfStage:Stage = this.stage;
swfStage.scaleMode = StageScaleMode.NO_SCALE;
swfStage.align = StageAlign.TOP;
// /

//container is a movieclip with a textfield and a shape in it.
container.addEventListener(MouseEvent.MOUSE_MOVE, fullScreenUP);
container.addEventListener(MouseEvent.CLICK, fullScreenUP);

function fullScreenUP(e:MouseEvent):void {
   test.text = fullScreenUP triggered!;
   if (screenCheck == false) {
   stage.displayState = StageDisplayState.FULL_SCREEN;
   screenCheck = true;
   } else {
   stage.displayState = StageDisplayState.NORMAL;
   screenCheck = false;
   }
}

/*
Kind regards
Cor
*/

___
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

___
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


RE: [Flashcoders] FULL_SCREEN problem Flash CS3 and AS3

2008-11-04 Thread Cor
Thank you.
I am not familiair with Javascript, but I will try this.

Kind regards.
Cor

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Carolina
Avila Coral
Sent: dinsdag 4 november 2008 20:38
To: Flash Coders List
Subject: Re: [Flashcoders] FULL_SCREEN problem Flash CS3 and AS3

Hi:

I use two html pages to do that,  the main page only has the information to 
open the fullscreen, the second page has the swf link.  I hope it be useful 
for you.

main page:

script language=JavaScript type=text/JavaScript

!--

function MachakFull(Ie,other){

//Copyright C 1999 m.milicevic [EMAIL PROTECTED] [EMAIL PROTECTED]

x=screen.availWidth;

y=screen.availHeight;

target = 
parseFloat(navigator.appVersion.substring(navigator.appVersion.indexOf('.')-
1,navigator.appVersion.length));

if((navigator.appVersion.indexOf(Mac)!=-1) 
(navigator.userAgent.indexOf(MSIE)!=-1) 
(parseInt(navigator.appVersion)==4))

window.open(other,sub,'scrollbars=yes');

if (target = 4){

 if (navigator.appName==Netscape){

var 
MachakFull=window.open(other,MachakFull,'scrollbars=yes','width='+x+',heig
ht='+y+',top=0,left=0');

 MachakFull.moveTo(0,0);

 MachakFull.resizeTo(x,y);}

if (navigator.appName==Microsoft Internet Explorer)

 window.open(Ie,MachakFull,fullscreen=yes);

 }

 else window.open(other,sub,'scrollbars=yes');

 }

 function Close_Window()
{
var mywindow=window.self;
mywindow.opener=window.self;
mywindow.close();
}
//--
/script
/head

body onLoad=MachakFull('index_01.htm','')
body onBlur=Close_Window();

- Original Message - 
From: Cor [EMAIL PROTECTED]
To: 'Flash Coders List' flashcoders@chattyfig.figleaf.com
Sent: Tuesday, November 04, 2008 2:04 PM
Subject: RE: [Flashcoders] FULL_SCREEN problem Flash CS3 and AS3


 Thanks Zeh.

 I noticed the displayState description, but it didn't do the trick for me.

 Is it possible to attach a fullscreen function to the ESC message, so when

 a
 user pushes ESC the app will stay in fullscreen?

 Kind regards
 Cor

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Zeh 
 Fernando
 Sent: dinsdag 4 november 2008 20:00
 To: Flash Coders List
 Subject: Re: [Flashcoders] FULL_SCREEN problem Flash CS3 and AS3

 Fullscreen can only be activated on certain events, so you cannot hijack 
 the
 user browser to set the fullscreen mode.

 Full-screen mode is initiated in response to a mouse click or key press 
 by
 the user; the movie cannot change Stage.displayState without user input


http://help.adobe.com/en_US/AS3LCR/Flash_10.0/flash/display/Stage.html#displ
 ayState

 If you want the site to work on fullscreen only, then make it in a way 
 that
 when displayState is set to normal, it displays a warning message and a
 button that when clicked will get back to fullscreen.

 You cannot get rid of the ESC message either.


 Zeh

 On Tue, Nov 4, 2008 at 3:13 PM, Cor [EMAIL PROTECTED] wrote:

 /*My goal:
I want to start my apps fullscreen whitout giving a user the
 possibility to scale
or to encounter the app within a browser.
When I CLICK it goes to FULL_SCREEN, but it doesn't work when I 
 try
 to do this with other events.
Back to NORMAL does work on MOUSE_MOVE but not going back to
 FULL_SCREEN.
How can I set it to FULL_SCREEN automatically?

And I also would like to get ride of the message Press Esc to 
 exit
 fullscreen mode?
Every help is welcome!
 */

 //My code in the first and only frame
 var screenCheck:Boolean = false;
 // Prevent scaling items on the stage
 var swfStage:Stage = this.stage;
 swfStage.scaleMode = StageScaleMode.NO_SCALE;
 swfStage.align = StageAlign.TOP;
 // /

 //container is a movieclip with a textfield and a shape in it.
 container.addEventListener(MouseEvent.MOUSE_MOVE, fullScreenUP);
 container.addEventListener(MouseEvent.CLICK, fullScreenUP);

 function fullScreenUP(e:MouseEvent):void {
test.text = fullScreenUP triggered!;
if (screenCheck == false) {
stage.displayState = StageDisplayState.FULL_SCREEN;
screenCheck = true;
} else {
stage.displayState = StageDisplayState.NORMAL;
screenCheck = false;
}
 }

 /*
 Kind regards
 Cor
 */

 ___
 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

 ___
 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