A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Need help getting flash to resize for larger screens

  1. #1
    Junior Member
    Join Date
    Apr 2012
    Posts
    4

    Need help getting flash to resize for larger screens

    Hi, everyone! I'm new here and need some assistance, so if anyone could help me fix this problem, I'd really appreciate it.

    I'm using this template for my website http://www.templatemo.com/templates/...mo_254_agency/

    That is the live version of the site, so you can see exactly what I'm talking about. I viewed the site from a friend's house yesterday and on their extremely large monitor, the flash image slider would not resize to fit the screen along with the rest of the page, all of the images just stayed the original size.

    Is there any way edit this javascript so it will resize the flash slider to fit the rest of the page?


    <script type="text/javascript" src="js/swfobject.js"></script>
    <script type="text/javascript">
    var flashvars = {};
    flashvars.xml_file = "photo_list.xml";
    var params = {};
    params.wmode = "transparent";
    var attributes = {};
    attributes.id = "slider";
    swfobject.embedSWF("flash_slider.swf", "flash_grid_slider", "930", "250", "9.0.0", false, flashvars, params, attributes);
    </script>


    Thanks

  2. #2
    Junior Member
    Join Date
    Apr 2012
    Posts
    4
    I've tried using 100% for the height and width and it still doesn't work. The problem is actually the screen resolution. When it's adjusted higher or lower, everything else resizes, but not the flash.

  3. #3
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,864
    I am back, guys ... and finally 18 :P

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

  4. #4
    Junior Member
    Join Date
    Apr 2012
    Posts
    4
    This looks good, but I don't have the .fla for the file. Only the .swf.

    Do you have any advice for how I could make this work with only the .swf?

    Thanks a lot!

  5. #5
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,864
    Not sure, but the only possible way would be to add a scale parameter to your Flash's HTML file:

    Code:
    <param name="scale" value="exactfit" />
    if the Flash file doesn't already have applied Actionscript to scale from within Flash, this will probably work, otherwise the Flash's scale code will override this one. Also, this scaling is NOT like the one in the tutorial, but this is the only possible solution if you have the SWF file
    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
    Apr 2012
    Posts
    4
    Okay, I'll try that. However, I was able to acquire the .fla a few hours ago so I should be able to figure it out no matter what.

    Thanks for your assistance.

    EDIT- This site template uses a javascript to embed the .swf, so that may complicate this most recent method.
    Last edited by cwilms; 04-23-2012 at 02:47 AM.

  7. #7
    Prid - Outing Nig 13's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    1,864
    If you've got the FLA, press CTRL+SHIFT+F12 to access Publish Settings, switch to HTML tab, and under Scale, use Exact Fit, and press Publish button.

    - or -

    on any Frame (preferrably Frame 1), type this:

    Actionscript Code:
    stage.scaleMode = StageScaleMode.EXACT_FIT;
    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