7/12/2011 12:57:30 PM
Title:
Flash as background
Hello,
Thanking you in advance.
I have a flash banner with the width of 1200px. And i want to use it in site without scroll if the flash site is opened in 1024px.
so suppose screen size is 1024 px then flash will show 1024px area in browser but without and scroll bar. and if screen size is 1200px or more it will show all flash content in center.
Please help me out.
Thanks
Amar
7/13/2011 6:28:33 AM
the solution lies in the html not in the flash. Put your flash file in a div with width and height 100% and set its textalign property to center. Set the flash width to fixed value of 1024 px.
This will make the div automatically resize with the changing browser size. And will align the content inside to center. In case you still get scroll then set the scroll property in div to none using css.
amar
Points: 210
Posts:11
7/14/2011 1:29:58 AM
Thanks Troy,
It is fruitful for me, but what i wanted is:-
my flash width is 1280px-
1. now suppose i open site in 1024px, then should be visible only 1024px area of flash some thing like cropped flash without scroll bar.
2. if i open this site in 1300px, then complete flash will be visible without scroll bar.
Thank you
Amar
amar
Points: 210
Posts:11
7/14/2011 1:32:41 AM
Sorry, by mistake it is checked as answered:(.
Please help me.
7/14/2011 9:59:23 AM
set scale property in html tag of flash to "noborder" this will make flash crop if the area available is less than the movie size. set width in HTML to 100% height can be fixed in your case.
<param name="SCALE" value="noborder">