A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: open swf full screen & windowless

  1. #1
    Junior Member
    Join Date
    Feb 2004
    Posts
    2

    open swf full screen & windowless

    is there anyway to remove the player window when an swf is opened, (v:mx, swf uses loadvarialbles to open remote txt file)

    also to make automatically fully screen, like when i make an autorun exe

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    fscommand("fullscreen", "true");

    On the first frame of your movie.

    If you want your movie to retain it's size, add...

    fscommand("allowscale", "false");

  3. #3
    Junior Member
    Join Date
    Feb 2004
    Posts
    2

    gratitude

    fast advice much appreciated, saved my skin

  4. #4
    Junior Member
    Join Date
    May 2012
    Posts
    3
    I would also like to know how to do this. I put "fscommand("fullscreen", "true");"
    on the first frame of my file but when I publish it I get an error that says "Scene 1, Layer 'actions', Frame 1, Line 3 1067: Implicit coercion of a value of type Boolean to an unrelated type String." what am I doing wrong

  5. #5
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,864
    You're returning a String when your function is set to only accept Boolean type as the return value, I think. Mind posting more code? and you're using AS2, right?
    I am back, guys ... and finally 18 :P

    BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS

  6. #6
    Junior Member
    Join Date
    May 2012
    Posts
    3
    oh no, I'm using AS3, Do you know the code to do it with AS3

  7. #7
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,864
    Well, then you should've made a new topic in the AS3 forum because this is Flash 8 and Older, which means only AS1 and AS2

    AS3:

    Actionscript Code:
    import flash.display.StageDisplayState;

    stage.displayState = StageDisplayState.FULL_SCREEN;

    For it to work, you'll have to open the SWF file locally (not from inside Adobe Flash)
    I am back, guys ... and finally 18 :P

    BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS

  8. #8
    Junior Member
    Join Date
    May 2012
    Posts
    3
    oh sorry

  9. #9
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,864
    No problem, as long as you didn't do it deliberately (or to spam)
    I am back, guys ... and finally 18 :P

    BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS

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