Click to See Complete Forum and Search --> : Browser size adopting flash


MrLeche
08-06-2006, 05:59 AM
Hello. How do you guys make a webpage which is basically flash based. but the flash resize when the browser is dragged on the size the viewer wants. say my screen reso now is 1280 x 1024, the flash then enlarge itself as 1280 x 1024 when the broswer then is at 1024 x 768, the flash adopts whatever browser size the user sets. and of course proportionally constrained ( I meant the Flash).

i asked this because a basic embedded flash file on an html (i use dreamweaver btw,) is strict on its size, so if you have made a flash movie that is 640 x 480 in size, the html page results flash with a 640 x 480 animation on wherever part of the page you have embedded it. top,left or mid center. whenever you drag your browser's edge to resize it say smaller than 640 x 480, scrollbars are shown, indicating that the movie is larger than the browser size, if broswer is then maxiized, assuming than the screen is 1024 x 768, the flash remains at 640 x 480.

recently i have seen flash pages that are browser size adopting, making the flash movie, swf itself adopt to the browser size. how do you do that? thanks!

raviganesh91221
08-08-2006, 03:12 AM
There is a code given in Flash's actionscript
fscommand("allowscale", true);

thsi will allow the movie to adopt the resolution of the screen. If the value is given as false then it will not adopt.

MrLeche
08-08-2006, 03:19 AM
hi, sorry if i have a late reply, I've finally found the answer and it's not the FS-Command. fs command is only used much preferrably on flash projector (.exe) flash file yes it adopts the screen reso but it's not intended for website and not embedded in flash. Thanks