A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Fullscreen Flash

  1. #1
    the cheesy child bounceboy's Avatar
    Join Date
    Dec 2008
    Location
    Australia
    Posts
    323

    Unhappy 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!!!!

  2. #2
    |-'|-'|
    Join Date
    Jan 2006
    Posts
    273
    http://www.bezzmedia.com/swfspot/tut...een_Flash_Mode

    http://www.broculos.net/tutorials/ho...en/20080314/en

    It's interesting how I could find loads of answers by searching in google.

  3. #3
    the cheesy child bounceboy's Avatar
    Join Date
    Dec 2008
    Location
    Australia
    Posts
    323
    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 -_-
    Last edited by bounceboy; 04-02-2009 at 02:06 AM.

  4. #4
    |-'|-'|
    Join Date
    Jan 2006
    Posts
    273
    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.

  5. #5
    the cheesy child bounceboy's Avatar
    Join Date
    Dec 2008
    Location
    Australia
    Posts
    323
    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.

  6. #6
    the cheesy child bounceboy's Avatar
    Join Date
    Dec 2008
    Location
    Australia
    Posts
    323
    ...

    oh well i have given up on this

  7. #7
    AS to write fullscreen code.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center