A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: StageDisplayState fullscreen works.. loaded swf's don't!

  1. #1
    Eternal Newbie
    Join Date
    Apr 2006
    Location
    Bitter cold Hell of the crappy NW
    Posts
    392

    StageDisplayState fullscreen works.. loaded swf's don't!

    Can anyone help me with this problem? I have a movie that I make fullscreen with a button. There are loaded components in this movie, the most important being other .swf's. The problem is when I click the button the stage goes full screen just fine, everything else stays where it is at.

    I have the following code to make full screen:

    Code:
    var fullScreen:MovieClip = _root.attachMovie("fullscreen1", "fullScreen", 20015, {_x:75, _y:200});
    fullScreen.onRelease = function() {
    	trace("I am being pressed");
      if(Stage.displayState  == "fullScreen"){
        Stage.displayState  = "normal";
      }
      else{
        Stage.displayState  = "fullScreen"
      }
    }
    the first line brings my fullScreen toggle button on stage, the rest tells the movie to go full screen on press, or revert from full screen. This all works fine, but like I said the loaded movies in this one stay the same size.

    How can I get the other components and swf's to go full screen as well?
    If I am wrong, please just correct me and move on.. there is no need for all that pointing and laughing! ~MoN

  2. #2
    trace("AKA: Biro Barna");
    Join Date
    Oct 2007
    Location
    RO.Timişoara
    Posts
    1,403
    Wrong forum dude, this is only on ActionScript 3.0



    | Windows MSN: birobarna [at] hotmail [dot] com | Skype: barna.biro |
    WebLog: http://blog.wisebisoft.com/ |
    | Software Developer / Flash & Flex Developer | Student ( Computer Science ) | Interested in: Sharing Knowledge |
    |
    Romanian Adobe Flash, Flex, AIR Forum: http://www.flashforum.ro/
    | By perseverance the snail reached the ark. |


  3. #3
    Eternal Newbie
    Join Date
    Apr 2006
    Location
    Bitter cold Hell of the crappy NW
    Posts
    392
    Umm.. yeah.. got that.

    Flash CS3, AS3.0 full Screen method:

    Code:
    Stage.displayState = "fullScreen";
    Earlier version and/or AS2.0 method:

    Code:
    Stage["displayState"] = "fullScreen";
    You can check the Flash Dev Center for more details.

    Now that I know what you're on about...

    Does anyone that knows what they are talking about have an idea?
    If I am wrong, please just correct me and move on.. there is no need for all that pointing and laughing! ~MoN

  4. #4
    trace("AKA: Biro Barna");
    Join Date
    Oct 2007
    Location
    RO.Timişoara
    Posts
    1,403
    _root.attachMovie
    That's not AS 3.0 ... anyways, i'll be back later on with a more normal reply.



    | Windows MSN: birobarna [at] hotmail [dot] com | Skype: barna.biro |
    WebLog: http://blog.wisebisoft.com/ |
    | Software Developer / Flash & Flex Developer | Student ( Computer Science ) | Interested in: Sharing Knowledge |
    |
    Romanian Adobe Flash, Flex, AIR Forum: http://www.flashforum.ro/
    | By perseverance the snail reached the ark. |


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