View Full Version : Automatic Flash Resize w/ autoadjustment of the monitor
Lupax
01-23-2002, 01:37 AM
how can i do that ?
example:
i have a flash movie and was made on 770 x 400
in my case-->i have a 800 x 600 resolution (standard), but my client says that he wants an automatic autoadjust of the flash movie but detecting the wide of the monitor first like the 1024 x 768 or more resolution, then the flash take the wide of that monitor but not altering the content and no using the tags of flash like noresize or whatever. only with some kind of javascript or actionscript, please help me and i hope you can understand my question.
(it doesn't matter the images alteration if the movie turns bigger)
thanks a lot !
jimburton
01-23-2002, 10:25 AM
Sorry, I don't get it - why can't you set height & width to a percentage value?
Lupax
01-23-2002, 11:40 AM
let me explain more specific my headache:
i want a flash movie on a 800 x 600 monitor resolution; if that, then lets put the flash movie on 770 (width) x "n" pixels.
but if the monitor is on 1024 x 768 of resolution; then lets put the flash movie on 994 (width) x "n" pixels.
but if the monitor is on 1280 x 1024 of resolution; then lets put the flash movie on 1250 (width) x "n" pixels.
ok i know what means the percent tag stuff, but the problem is when i reduce the browser window, however, the movie too.
my ideal solution should be if the user reduces the browser window no percent resize on the flash movie.
staying on the same width of the window browser when that window is maximized or on the total screen only.
please help me
thanks a lot :(
jimburton
01-23-2002, 12:03 PM
Got you. I've not done this myself but you will need to access the javascript properties window.innerHeight, window.innerWidth (size of the window) and screen.height, screen.width (resolution). You could either do that then stick with javascript to resize the flash movie or send the info back to the flash movie and resize accordingly. Put all the javascript in a function that runs onLoad and on window.onResize.
Sorry there's no code in this response! Hope its helpful though...
red penguin
01-23-2002, 12:05 PM
I'm not a wiz with JS, PHP, mySQL, etc, or any other of the like, but would the fscommand for allowscale be of any service in this situation?
Also, perhaps you could just have a popup from your entry page where you set the width and height ...this is all JS, and they can't resize...As far as detecting the users "settings", don't know if it's possible...but think it might be???
Lupax
01-23-2002, 12:11 PM
thank you very much for your replies
let's go to work on it.
:)
vBulletin® v3.7.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.