473,396 Members | 1,998 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Is there any javascript function available to auto resize swf

Anz
Can any one know the javascript function to auto resize the swf when
resizing its pop up window.
I need to auto resize the swf when i resize my popup window in which
the swf is displayed.
Is there any javascript function available to perform this
requirement ?
Jun 27 '08 #1
7 2572
Anz wrote:
Can any one know the javascript function to auto resize the swf when
resizing its pop up window.
I need to auto resize the swf when i resize my popup window in which
the swf is displayed.
Is there any javascript function available to perform this
requirement ?
Just set it's width and height both to "100%" and it'll resize
automatically to it's container size (a div or the whole page). You can
even retrieve that information inside the Flash by getting the stage size.
Jun 27 '08 #2
Anz
On Jun 25, 4:00 pm, Stevo <n...@mail.invalidwrote:
Just set it's width and height both to "100%" and it'll resize
automatically to it's container size (a div or the whole page). You can
even retrieve that information inside the Flash by getting the stage size.
Thanks for the reply , but it doesn't fix the problem, when i did so,
the height of the swf is reduced considerably
Jun 27 '08 #3
Anz
On Jun 25, 4:18 pm, Anz <anzbmuham...@gmail.comwrote:
Thanks for the reply , but it doesn't fix the problem, when i did so,
the height of the swf is reduced considerably
Any other solution ?
Jun 27 '08 #4
Anz wrote:[quote]
On Jun 25, 4:00 pm, Stevo <n...@mail.invalidwrote:
Thanks for the reply , but it doesn't fix the problem, when i did so,
the height of the swf is reduced considerably
That sounds like you've got a fixed aspect ratio. This is to avoid the
SWF looking squashed. If you play around with resizing the window width
and height you should find that you find the sweet-spot where it fits
perfectly. At that point you've set your browser to the same aspect
ratio as the swf. I don't know Flash myself, I just get SWF files from
people who do, and I know that you can have a fixed aspect ratio. I
think you'll have more success on an Adobe forum than here.
Jun 27 '08 #5
Anz
Thank u Stevo
i am just loading the flash from its location with the help of html
tags and php code, as like

Expand|Select|Wrap|Line Numbers
  1. <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
  2. codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/
  3. swflash.cab#version=7,0,19,0" width="100%" height="100%">
  4. <param name="movie" value="<?=$this->baseUrl?>/public/data/
  5. startintro/<?=$this->start_intro?>?<?=time()?>">
  6. <param name="quality" value="high">
  7. <embed src="<?=$this->baseUrl?>/public/data/startintro/<?=
  8. $this->start_intro?>?<?=time()?>" quality="high" pluginspage="http://
  9. www.macromedia.com/go/getflashplayer" type="application/x-shockwave-
  10. flash" width="100%" height="100%">
  11. </object>

and I too don't know Flash myself. As u said, if i am getting the
fixed aspect ratio, how can I change that ?,
Is this due to any problem with the browser ? , i am using Firefox
Jun 27 '08 #6
Anz wrote:
Thank u Stevo
I too don't know Flash myself. As u said, if i am getting the
fixed aspect ratio, how can I change that ?,
Is this due to any problem with the browser ? , i am using Firefox
It's a property of the SWF itself. You'd have to get some Flash
developer to re-save it with the fixed aspect ratio turned off. I assume
(but don't know) that it would be a check-box somewhere in Flash. I just
googled it and see a few threads discussing it. Perhaps it can be
overridden from your tag somehow.

http://www.google.com/search?q=flash+swf+aspect+ratio
Jun 27 '08 #7
Anz
On Jun 26, 10:23 am, Stevo <n...@mail.invalidwrote:
It's a property of the SWF itself. You'd have to get some Flash
developer to re-save it with the fixed aspect ratio turned off. I assume
(but don't know) that it would be a check-box somewhere in Flash. I just
googled it and see a few threads discussing it. Perhaps it can be
overridden from your tag somehow.

http://www.google.com/search?q=flash+swf+aspect+ratio

I am still with that problem ???
Jun 27 '08 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Henk Verhoeven | last post by:
(Reply on this newsgroup to an email - reply by email did not work) Wolfman wrote: > > Hi, > I found your Email in the php Newsgroup. > I was looking for some way to resize some graphiks on my...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.