This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Flash Site Design > February 2006 > Movie resizing according to browser width





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Movie resizing according to browser width
isagard

2006-02-20, 3:26 am

Is there a way to resize a flash movie according to the user's browser or screen width?
tralfaz

2006-02-20, 3:26 am

"isagard" <webforumsuser@macromedia.com> wrote in message
news:dtar3o$kpk$1@forums.macromedia.com...
> Is there a way to resize a flash movie according to the user's
> browser or screen width?


In the Flash publish settings for html
Dimensions: percent
width 100 height 100

Setting to 100% works ok except for IE. If you let Dreamweaver or
another html editor add a docType line to the html it will display as
100x100 pixels instead of 100% in Firefox.
Search the macromedia.flash forum for FireFox and 'small' or 'tiny' to
see discussion on that and different work-arounds.
tralfaz


isagard

2006-02-20, 3:26 am

Doesn't work :(. This is the code I am using right now:

<EMBED SRC=/my/movie.swf AUTOSTART=true WIDTH=100% HEIGHT=100% LOOP=100>

I took off all the object stuff because it didn't work in the PHP this is in.

tralfaz

2006-02-20, 3:26 am

"isagard" <webforumsuser@macromedia.com> wrote in message
news:dtb6jc$3me$1@forums.macromedia.com...
> Doesn't work :(. This is the code I am using right now:
>
> <EMBED SRC=/my/movie.swf AUTOSTART=true WIDTH=100% HEIGHT=100%
> LOOP=100>
>
> I took off all the object stuff because it didn't work in the PHP
> this is in.


The 'object stuff' is for Internet Explorer. The 'embed' part is for
and mozilla type browsers like Netscape and Firefox. You need both
unless you want your site to not load anything for Internet Explorer
users.
tralfaz


isagard

2006-02-20, 3:26 am

Yes, but it doesn't work right it doesn't expand to fit the browser window.
tralfaz

2006-02-20, 3:26 am

"isagard" <webforumsuser@macromedia.com> wrote in message
news:dtbefn$c19$1@forums.macromedia.com...
> Yes, but it doesn't work right it doesn't expand to fit the browser
> window.


If you resize the browser window it will make the flash page change
size to fit the new browser window but the aspect ratio won't change.
You can end up with edges at the top or bottom if the window isn't
resized equally. The other way to do it is to resize things using
Actionscript.
Here is an example with mx sourcecode on my website..
http://members.cox.net/4my5cats/noS...ageResize2.html

It resizes the background image only and repositions the other clips
but you can also resize the rest of the objects too using the same
method if you can work with the code.
tralfaz


isagard

2006-02-24, 10:16 am

Doesn't work either.
isagard

2006-02-24, 10:16 am

I got it to work using html and php.
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews