-
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
-
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.
-
Prid - Outing
I am back, guys ... and finally 18 :P
BRING BACK THE OLD DESIGN!! OR AT LEAST FIX THE AS TAGS
-
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!
-
Prid - Outing
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
-
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.
-
Prid - Outing
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|