Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: FLASH: [repost] - Toggle fullscreen in projector?
From: Gregg Caines
Date: Sun, 17 Sep 2000 17:37:51 +0100

There's no need for telltarget, but you do need to use ==
instead of = to test equivalence. Like java, javascript, c, &
c++ the = operator sets equivalence while the == operator
tests it. Also, 'blownup' need not be a string either, it can be
a real boolean true or false, so there's no need for quotes
around the value. I'm surprised fullscreen is not testable
directly, but I know this was true for Flash 4, so I'll take your
word for it in Flash 5.

on (release) {
if (blownup == true) {
fscommand ("fullscreen", "false");
blownup = false;
} else {
fscommand ("fullscreen", "true");
blownup = true;
}
}

---------------------------------------------------
Gregg Caines
n e o m e t r i x systems inc.
http://www.neometrixsystems.com
gcainesatneometrixsystems [dot] com

<snip>
> Question2:
> How do I build a toggle button for setting a projector to play fullscreen
or
> in a window?
>
> I've set a framescript to use an fs command to set the fullscreen to true
> and additionally set a variable (blownUp) to true (decided to use a
variable
> because I didn't seem to be able to test for the condition of fullscreen
> directly).
>
> In a button in the movie, I'm trying to test for the state of the
variable.
> Based upon whether the variable blownUp equals true or false, I want to
call
> fscommand and set fullscreen accordingly (followed by setting blownUp
> accordingly).
>
> The initial condition is set in the first frame of the movie to blownUp =
> true and so I assume blownUp is true when I test in the action attached to
> the button. If false, then I want to use fscommand and set fullscreen to
> true.
>
> Again, this is not in a browser via a plugin but as a stand alone
projector.
> Is toggling fullscreen doable? Do I need to use Tell Target with a path
> followed by the fscommand?
> My most recent failed attempt used:
>
> on (release){
> if (blownUp = "true"){
> tellTarget ("whateverMovie"){
> fscommand ("fullscreen", "false");
> }
> {else if (blownUp = "false") {
> tellTarget ("whateverMovie"){
> fscommand ("fullscreen", "true");
> }
> }
>
> This is probably more complicated that it needs to be but I can't seem to
> get this to work so I keep trying different approaches (without really
> knowing the ActionScript syntax yet).
>
> Any insight is greatly appreciated, thanks.
>
> Jay K


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: [repost] - Toggle fullscreen in p, Jay K

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]