# Maximize Flash Projector window (noob)

**URL:** <https://forum.kirupa.com/t/maximize-flash-projector-window-noob/16804>\
**Category:** flash\
**Created:** [March 28, 2003, 2:49pm UTC](https://forum.kirupa.com/t/maximize-flash-projector-window-noob/16804 "2003-03-28T14:49:20Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![mark\_in\_2k](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@mark\_in\_2k](https://forum.kirupa.com/u/mark_in_2k)\
**Post date:** [March 28, 2003, 2:49pm UTC](https://forum.kirupa.com/t/maximize-flash-projector-window-noob/16804/1 "2003-03-28T14:49:20Z")

</div>

OK, with Flash MX I have a quick intro as a projector file which then runs my main cd-rom presentation (a swf file).

I’m looking for a way in which I can maximize the main presentation so that it hides the users desktop, but keep the movie size itself the same (700x550). When I run it I can manually maximize the presentation but is it possible to do it automatically, perhaps using an fscommand?

TIA:crazy:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 28, 2003, 2:51pm UTC](https://forum.kirupa.com/t/maximize-flash-projector-window-noob/16804/2 "2003-03-28T14:51:20Z")

</div>

PS. I’m not using any internet browser software, just the flash projector.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 28, 2003, 2:59pm UTC](https://forum.kirupa.com/t/maximize-flash-projector-window-noob/16804/3 "2003-03-28T14:59:45Z")

</div>

you can use the stage object and a fscommand

```auto
Stage.scaleMode = "noScale";
fscommand("fullscreen", "true");

```

or both fscommand

```auto
fscommand("allowscale", "false");
fscommand("fullscreen", "true");

```

😉 =)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 28, 2003, 3:13pm UTC](https://forum.kirupa.com/t/maximize-flash-projector-window-noob/16804/4 "2003-03-28T15:13:31Z")

</div>

Kax, thanks soooo much! We were about to purchase some software to do that, but your way was fantastic!!

I have another related question…

when i initially run my projector exe it runs in a window mode, slightly smaller than my main presentation (700x300).

can u tell me how i put an fscommand at the beginning of my intro movie so that it also runs maximized and not windowed.

i’m under the impression that fscommands only work on button objects (on release). can i put it in a frame when the intro starts up?

tia (again!)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 28, 2003, 3:16pm UTC](https://forum.kirupa.com/t/maximize-flash-projector-window-noob/16804/5 "2003-03-28T15:16:04Z")

</div>

yup. just paste the script in the first frame =)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 28, 2003, 3:21pm UTC](https://forum.kirupa.com/t/maximize-flash-projector-window-noob/16804/6 "2003-03-28T15:21:15Z")

</div>

can u tell me what the event is? (i’m a complete noobie!!). “release” doesn’t work coz there is no button to attach it to…

here’s the code i used

on (release) {  
loadMovieNum(“cd\_presentation\_1 soundtrack.swf”, 0);  
fscommand(“fullscreen”,“true”);  
fscommand(“allowscale”, “false”);  
fscommand(“showmenu”, “false”);  
}

and here’s the error i got

Scene=Scene 1, Layer=actions, Frame=1: Line 1: Mouse events are permitted only for button instances  
on (release) {

thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 28, 2003, 3:25pm UTC](https://forum.kirupa.com/t/maximize-flash-projector-window-noob/16804/7 "2003-03-28T15:25:31Z")

</div>

PS. I have now removed this line:

loadMovieNum(“cd\_presentation\_1 soundtrack.swf”, 0);

coz i didn’t want the main pres to load! still get same error tho.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 28, 2003, 3:26pm UTC](https://forum.kirupa.com/t/maximize-flash-projector-window-noob/16804/8 "2003-03-28T15:26:31Z")

</div>

you don’t need an event…

```auto
loadMovieNum("cd_presentation_1 soundtrack.swf", 0);
fscommand("fullscreen","true");
fscommand("allowscale", "false");
fscommand("showmenu", "false");

```

by the way… event handlers used from a frame of the movie is a bit different than attaching the script to a movie clip/button

**ie.** in a movie clip/button the script would be

```auto
on (release) {
statement(s);
}

```

in a frame the script would be

```auto
instance.onRelease = function() {
statement(s);
}

```

[dynamic event handlers](http://www.kirupa.com/developer/actionscript/tricks/dynamicevent.asp)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 28, 2003, 3:29pm UTC](https://forum.kirupa.com/t/maximize-flash-projector-window-noob/16804/9 "2003-03-28T15:29:42Z")

</div>

thanks kax, i got it sorted at last!

it’s looking good! now all i have to do is burn 75 cd’s!!:ub:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 28, 2003, 3:31pm UTC](https://forum.kirupa.com/t/maximize-flash-projector-window-noob/16804/10 "2003-03-28T15:31:08Z")

</div>

😛

no problem mark 😉 =)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 28, 2003, 4:24pm UTC](https://forum.kirupa.com/t/maximize-flash-projector-window-noob/16804/11 "2003-03-28T16:24:42Z")

</div>

sorry to bug you again kax…another question.

when the movie loads it stops on frame one where i have some sound controls which work, but i want the sound to start automatically.

i’m guessing that i should have another frame script to get the sound playing but i’m not having any joy.

can u help? this is the code i’m trying to use:

playsound(“01 track main.mp3”);

stop();

tia  
☹

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 28, 2003, 4:41pm UTC](https://forum.kirupa.com/t/maximize-flash-projector-window-noob/16804/12 "2003-03-28T16:41:23Z")

</div>

ehmm…

playsound… ? you need to define a sound object first… then load the sound…

```auto
mySound = new Sound();
mySound.loadSound("01 track main.mp3", true);

```

could you please be more specific? could you post the code in your sound control? :-\

😛

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 28, 2003, 5:02pm UTC](https://forum.kirupa.com/t/maximize-flash-projector-window-noob/16804/13 "2003-03-28T17:02:09Z")

</div>

i tried the above code but it didn’t play the soundtrack (didn’t get an error tho)

here’s my code for the sound control buttons, which work fine:

mySound01 = new Sound();  
mySound01.attachSound(“soundtrack01”);  
mySound01.stop();

playButton.onRelease = function() {  
mySound01.Start(0, 999);

}  
stopButton.onRelease = function() {  
mySound01.Stop();  
}

do u think the problem comes from the fact that i have a stop(); action in the same frame?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 28, 2003, 5:08pm UTC](https://forum.kirupa.com/t/maximize-flash-projector-window-noob/16804/14 "2003-03-28T17:08:55Z")

</div>

oh!! you’re attaching the sound from the library… i though you were loading the sound dynamically 😛

```auto
mySound01 = new Sound();
mySound01.attachSound("soundtrack01");
mySound01.start();

```

just instead of the stop() use start()… ? 😛 😉

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 28, 2003, 5:14pm UTC](https://forum.kirupa.com/t/maximize-flash-projector-window-noob/16804/15 "2003-03-28T17:14:32Z")

</div>

cool, working now! thanks again kax!!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [March 28, 2003, 5:18pm UTC](https://forum.kirupa.com/t/maximize-flash-projector-window-noob/16804/16 "2003-03-28T17:18:52Z")

</div>

anytime man =)
