Welcome to Egypt Forums Mark forums read | Egypt Main Page
Egypt Forums
Arabic Movies



Web Technology Web Design Tools Photoshop,Dreamweaver,Flash,Etc.Tutorials , References , Examples.

Web Technology Thread, resizing an embedded flash object according to monitor resolution - with javascript? in Programming , WebDesign & Development; Hey guys, Here's my issue - and hopefully I can get this fixed by the end of today because it's ...

Short Link: http://forum.egypt.com/enforum/showthread.php?t=14561


Reply
LinkBack Thread Tools Display Modes
resizing an embedded flash object according to monitor resolution - with javascript?
 
 
Senior Member

Reply With Quote
 
Join Date: Dec 2008
Posts: 18,122
09-01-2009, 04:00 PM
 
Hey guys, Here's my issue - and hopefully I can get this fixed by the end of today because it's the last day of my job (going back to school). We have a web portal for our IT group here at the company, and I have a flash file embedded, which will...

Hey guys,

Here's my issue - and hopefully I can get this fixed by the end of today because it's the last day of my job (going back to school). We have a web portal for our IT group here at the company, and I have a flash file embedded, which will look fine on a 1024x768 monitor, but will be too small on higher resolutions.

Is there a way I can grab the resolution of the screen using javascript, into variables "x" and "y" (for example), and use those to calculate the correct pixel width and height of the flash object, and then set it to that width and height. ?

Here is my code for the flash object embedding:













My current dimensions of the object at 575 x 355 I would like to be changed if the user has a different resolution (while of course maintaining the same aspect ratio).

Appreciate the help I get here as always,

Sphinx
 
 
 
Reply

Web Technology Thread, resizing an embedded flash object according to monitor resolution - with javascript? in Programming , WebDesign & Development; Hey guys, Here's my issue - and hopefully I can get this fixed by the end of today because it's ...

Short Link: http://forum.egypt.com/enforum/showthread.php?t=14561


Bookmarks

Tags
embedded, flash, javascript, monitor, object, resizing, resolution


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump