Resize a Flash file to the size of the fullscreen webpage
13 replies, posted
Right, so say I have a flash site that I want to upload to the internet, but the resolution of everyones computers is slightly different, is there a way that I can import vector images (so they don't loose quality) into the Flash document and then have the page resize depending on the size of the browser window.
Rate me dumbs if it's really that obvious,
Thanks in advance.
Love Chris
[url]http://www.w3schools.com/flash/flash_inhtml.asp[/url]
Here's a tutorial i found for inserting flash objects into html. You can set the width and height in percentage of browser window size, like this:
[code]<object width="100%" height="100%">
<param name="movie" value="somefilename.swf">
<embed src="somefilename.swf" width="100%" height="100%">
</embed>
</object>[/code]
I'm not sure why you have to set the width and height twice, but the settings inside embed tags seem to be the ones that actually determine the size of the flash object.
I think you'd want to use style="width:100%;height:100%;" for that. For example,
[CODE]
<object style="width:100%;height:100%;">
<param name="movie" value="somefilename.swf">
<embed src="somefilename.swf" style="width:100%;height:100%;">
</embed>
</object>
[/CODE]
If I did that, would the vector images scale or would they loose quality?
[QUOTE=Juggernog;21840582]If I did that, would the vector images scale or would they loose quality?[/QUOTE]
They should scale.
It doesn't seem to work vertically or horizontally properly.
The horizontal works, but the content does not stretch, and the vertical gets smaller, why is this?
[IMG]http://i413.photobucket.com/albums/pp211/FacepunchChris/problem.png[/IMG]
I don't think you can stretch a flash file as you can with an image. I think it goes after the smallest dimention compared to if the flash is 4:3 or 16:9 and so on.
Seriously? Damn it!
Moved to webdev
Is that an ask jeeves toolbar?
[QUOTE=Tools;21860381]I don't think you can stretch a flash file as you can with an image. I think it goes after the smallest dimention compared to if the flash is 4:3 or 16:9 and so on.[/QUOTE]
No no, you can. I am very sure of this. I've seen it in a few places, so I'll just need to find an example.
[QUOTE=Juggernog;21856949]It doesn't seem to work vertically or horizontally properly.
The horizontal works, but the content does not stretch, and the vertical gets smaller, why is this?
[IMG]http://i413.photobucket.com/albums/pp211/FacepunchChris/problem.png[/IMG][/QUOTE]
You need to also set the height of the body and html tags to 100% in your CSS.
[editline]09:55PM[/editline]
[QUOTE=Tools;21860381]I don't think you can stretch a flash file as you can with an image. I think it goes after the smallest dimention compared to if the flash is 4:3 or 16:9 and so on.[/QUOTE]
Nope, you can do it, I've done it before.
Lol at blurring out the shit toolbars and your open tabs.
[QUOTE=turb_;21873754]Lol at blurring out the shit toolbars and your open tabs.[/QUOTE]
I think it is understandable as to why he would want to hide ask jeeves.
[QUOTE=Pepin;21876481]I think it is understandable as to why he would want to hide ask jeeves.[/QUOTE]
[quote=turb_]shit toolbars[/quote]
:p
Sorry, you need to Log In to post a reply to this thread.