-
Fullscreen Flash
I work fine in a standalone flash player. when put in HTML, I don't work without a script.
WHAT AM I?
I AM FULLSCREEN!
in a html file you are meant to put a script in with flash and it is meant to make a fullscreen button work. this is my script:
PHP Code:
Stage.scaleMode="Scale";
Stage.align = "TC"; //T:top, C: center
function toggleFullScreen(){
if(Stage["displayState"]=="normal"){
Stage["displayState"]="fullScreen";
fullscreen_btn.gotoAndStop(2);
}else{
Stage["displayState"]="normal";
fullscreen_btn.gotoAndStop(1);
}
}
Thats actionscript, guys.
the function toggleFullScreen works fine, its to do with the html as i said.
i have tried adding this with the flash part of the HTML:
<param name="allowFullScreen" value="true">
FAIL!
I also tried this HTML:
<embed src="main.swf" allowscriptaccess="true" allowfullscreen="true">
(that isn't all of the embed stuff but it has everything that I added)
what am I doing wrong?
Did I get my Case Sensitive stuff right?
or did i put a capital somewhere inappropriate?
Please help guys!!!!
-
-
lol u r a stalker!
anyway i did too...
me silly though I look at only the first page on google
thanks lol
EDIT: epic fail... i already tried <param name="allowFullScreen" value="true" />
plz read fully next time -_-
-
I tested both html codes. they both work even with your AS code. try replacing the whole html with one of theirs and see if that work.
no, I am not stalking you. you simply post before I login. If you prefer I will ignore all posts start or end by you therefore even if I can help I won't post. I'll just let them blame you. Either way is fine by me. I simply has less typing to do.
-
oh right sorry... i check daily lol
anyway I use dreamweaver so i bet thats why my code isn't working properly?
for my flash stuff to work i have to have a folder called script with my game to put a run flash content html script thingy.
-
...
oh well i have given up on this
-
AS to write fullscreen code.