Hi,
I have been using Kirupa.com for over a year now, sadly this is my first post.
I am just wondering if fscommand(“fullscreen”) actually returns anything. I am wanting to implement a button that utilises an if statement to verify if the projector is on full screen mode or not and flick between the two acordingly.
Here it is.
on(release){
//trace(fscommand(“fullscreen”))
if(fscommand("fullscreen") == false){
fscommand(“fullscreen”, “true”);
}
else{
fscommand(“fullscreen”, “false”);
}
}
Pretty simple, however it doesn’t work. On the first press if not allready in fullscreen mode it will put the player into fullscreen mode. On the seccond press if the player is in fullscreen mode it will flick to windowed and then back to fullscreen.
When running the swf from flash (ctrl + enter) tracing the fscommand(“fullscreen”) returns undefined, (obviously because an swf can’t use the fscommand functionality)
Is this possible, or do i just have to have 2 buttons, fullscreen and non fullscreen.
Cheers,
Robert :kir:
P.S. if fscommand(“fullscreen”) is left that way and you auto format it will change it to fscommand(“fullscreen”, “”)
maybe I have to use
if(fscommand(“fullscreen”, “true”)==true) which is kinda silly…