Advertisement

07.02.2008 at 02:49AM PDT, ID: 23532957 | Points: 500
[x]
Attachment Details

Can I add an additional function on escape key when exiting fullscreen using Flash CS3 actionscript 2

Asked by realmark in ActionScript, Macromedia Flash, Web Development

Tags: ,

Good day Experts.

I would like to add an additional function to my escape key when exiting fullscreen mode in flash.  Because I am using AS2 it was impossible to use the nice AS3 FLV controller in my flash movie to display video fullscreen so I used the displaystate = fullscreen. It is working fine but I have _visibility functions on my fullscreen button activators, now I need to know how to add the same _visible functions to the escape key?

Herewith my fullscreen enter and exit button code:Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
function fs() {
	if(Stage["displayState"] == "normal"){
    Stage["displayState"] = "fullScreen";
  }else{
    Stage["displayState"] = "normal"
  }
   setProperty(_root.mcStage.mainheader, _visible, false);
   setProperty(_root.mcStage.memberstop, _visible, false);
   setProperty(_root.mcStage.headlogo, _visible, false);
   setProperty(_root.mcStage.leftmov, _visible, false);
   setProperty(_root.mcStage.leftCol, _visible, false);
   setProperty(_root.mcStage.rightCol, _visible, false);
   setProperty(_root.mcStage.stageframe, _visible, true);
   setProperty(_root.mcStage.framebotline, _visible, false);
   setProperty(_root.mcStage.moviestage.scrollbar, _visible, false);
   setProperty(this.fs_but, _visible, false);
   setProperty(this.ns_but, _visible, true);
   
}
 
fs_but.onPress = function() {
fs();
 }
  
  
function nofs() {
	if(Stage["displayState"] == "normal"){
    Stage["displayState"] = "fullScreen";
  }else{
    Stage["displayState"] = "normal"
  }
      setProperty(_root.mcStage.mainheader, _visible, true);
   setProperty(_root.mcStage.memberstop, _visible, true);
   setProperty(_root.mcStage.headlogo, _visible, true);
   setProperty(_root.mcStage.leftmov, _visible, true);
   setProperty(_root.mcStage.leftCol, _visible, true);
   setProperty(_root.mcStage.rightCol, _visible, true);
   setProperty(_root.mcStage.stageframe, _visible, false);
   setProperty(_root.mcStage.framebotline, _visible, true);
   setProperty(_root.mcStage.moviestage.scrollbar, _visible, true);
   setProperty(this.fs_but, _visible, true);
   setProperty(this.ns_but, _visible, false);
}
 
ns_but.onPress = function() {
nofs();
 }
 
 
[+][-]07.03.2008 at 03:12AM PDT, ID: 21923970

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.07.2008 at 07:59AM PDT, ID: 21945621

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.07.2008 at 10:04AM PDT, ID: 21946731

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.16.2008 at 12:48AM PDT, ID: 22013961

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.16.2008 at 01:28AM PDT, ID: 22014138

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.16.2008 at 10:07AM PDT, ID: 22017947

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.17.2008 at 12:54AM PDT, ID: 22023185

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.17.2008 at 08:03AM PDT, ID: 22026193

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.31.2008 at 01:14AM PDT, ID: 22127775

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.31.2008 at 01:47AM PDT, ID: 22127912

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.31.2008 at 01:51AM PDT, ID: 22127925

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.31.2008 at 01:51AM PDT, ID: 22127926

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.31.2008 at 08:13AM PDT, ID: 22130459

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.01.2008 at 05:15AM PDT, ID: 22137489

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.01.2008 at 08:25AM PDT, ID: 22139224

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-42 / EE_QW_2_20070628