PDA

View Full Version : Fscommand-Fullscreen does not work in Flash Player 9


viswhiz
05-03-2007, 01:58 AM
Dear all,

I have a problem with Flash Player 9. I have developed a flash application (projector) in Flash 8 and now I am trying to compile it with Flash 9. I have to do this because of Flash 8's bug with asfunction, which apparently is fixed in Flash 9 (CS3). I can compile it into Flash 9 projector, but when I do that, it will not run FSCOMMAND("FULLSCREEN", true); anymore. I wonder why this is as such.

When I read through some help resources, somewhere it says that FSCOMMAND is not supported in FP9 because of some security reasons and it says that I should use External Interface API instead.

Can anybody enlighten me about this issue? If I have to use External Interface whatever, can anybody help me with that? Please remember that I am working with flash projector (exe), not in a browser.

Thank you very much,

visWhiz :)

AyAmi
05-03-2007, 08:38 PM
Hello :)

To be honest i had exactly the same problem, and i spent like half of this day lookin for solution, and there is nothing nothing at all anywhere on internet. So I tried few more tricks and i did it :D You'll be surprised what the solution is LOL. Ok no more talking, here it goes:

I had a project in flash 8 with AS in 1st frame lookin smth like this :

fscommand("fullscreen","true");
fscommand("showmenu","false");
fscommand("allowscale","false");
fscommand("trapallkeys","true");
....
....


And this didnt work thou it worked in flash8, all you need to do is:

fscommand("trapallkeys","true");
fscommand("fullscreen","true");
fscommand("showmenu","false");
fscommand("allowscale","false");

The fscommand with trapallkeys needs to be BEFORE fullscreen, yes yes i know its dumb, silly but goes what it helped me and my projector file works in fullscreen mode now. I hope the same thing will help you :) GL !

viswhiz
05-04-2007, 12:01 AM
AyAmi,

Yes, I actually just found the same way. I found out that "trapallkeys" messes up with the "fullscreen". When I reversed the order, "fullscreen" works; but in that order "trapallkeys" doesn't work!

I use "trapallkeys" to stop people from pressing ESC and CTRL-F to quit fullscreen mode. However, ESC and CTRL-F still work if I put "trapallkeys" above "fullscreen".

So the problem is, I only able to use either one, not both. This is really strange. Do you have the same problem?

I could not make "showmenu", "false" to work either.

Thank you for your reply,

viswhiz

AyAmi
05-04-2007, 01:25 AM
damn, u r right, its the same for me, i forgot to test the esc and ctrl+f keys :(
This is very strange and silly i could say. Its either fullscreen or trapallkeys :(
If i manage to find solution i will post here, but do the same if u find one, cause there seems to be no info anywhere about that "bug"

Regards

AyA

viswhiz
05-04-2007, 11:59 PM
Dear AyA,

I found a, probably temporary, solution to our problem.

Recently i tried to make a test flash 9 projector with two buttons that toggles fscommand fullscreen and trapallkeys on/off. I found out that fullscreen and trapallkeys do work together (can be enabled simultaneously). But because I enabled them with buttons, meaning that I did not enable them AT THE SAME TIME.

So this is actually the solution itself.

In my flash project, I put FSCOMMAND FULLSCREEN TRUE and ALLOWSCALE FALSE in frame 1, and I put TRAPALLKEYS TRUE and SHOWMENU FALSE on frame 3.

Putting them side by side (on frame 1 and frame 2) didn't work, and frame 1 and frame 3 is the closest I can use.

This way, all works. fullscreen, no allowscale, trapallkeys, and no showmenu.

I hope weird bug (is it a bug??) of flash 9 can be worked out later somehow by adobe.


Regards,

viswhiz

AyAmi
05-06-2007, 07:46 PM
Thx visWhiz for this tip, but its no use for me, i have heavily nested movie project with one frame on main timeline to avoid unclear situations.

Well this seems like a bug, but so silly I dunno what to think. I dont think that we are doing smth wrong.

So anyway thx again for suggestion, and gl with ur project

AyA :)

viswhiz
05-07-2007, 09:32 PM
Dear AyA,

You can use nested movieclip to run the fscommands, thats how i did it. I also have one frame in the main timeline. But I agree adobe should fix it indeed.

Regards,

viswhiz

mbd
09-11-2007, 08:54 PM
You might want to check out this blog post:
FSCommand and getURL Bug in Flash Player 9 (http://www.northcode.com/blog.php/2007/09/11/FSCommand-and-getURL-Bug-in-Flash-Player-9)

It explains why this is happening.

I posted this in the AS3 forum as well since it applies to AS2 and AS3.

amytis
03-14-2008, 08:51 PM
import flash.display.*;

stage.displayState = StageDisplayState.FULL_SCREEN;
stage.showDefaultContextMenu = false;
stage.scaleMode = StageScaleMode.SHOW_ALL;

emolen
04-10-2009, 09:55 PM
thanks

AlienStar
08-13-2009, 10:52 PM
Dear AyA,

I found a, probably temporary, solution to our problem.

Recently i tried to make a test flash 9 projector with two buttons that toggles fscommand fullscreen and trapallkeys on/off. I found out that fullscreen and trapallkeys do work together (can be enabled simultaneously). But because I enabled them with buttons, meaning that I did not enable them AT THE SAME TIME.

So this is actually the solution itself.

In my flash project, I put FSCOMMAND FULLSCREEN TRUE and ALLOWSCALE FALSE in frame 1, and I put TRAPALLKEYS TRUE and SHOWMENU FALSE on frame 3.

Putting them side by side (on frame 1 and frame 2) didn't work, and frame 1 and frame 3 is the closest I can use.

This way, all works. fullscreen, no allowscale, trapallkeys, and no showmenu.

I hope weird bug (is it a bug??) of flash 9 can be worked out later somehow by adobe.


Regards,

viswhiz

viswhiz I don't know what I can tell you

you're so amazing you've solved a so much big problem for me

thanks a lot a lot a lot