6/7/2010 4:35:07 AM
Title:
How does the browser scroll a liquid layout?
Hi guys, I was at this website: http://www.tpet.co.uk/
and was wondering how the author was able to allow the browser to scroll all the content when it's set to 100% scale in the browser. Take note Flash doesn't handle the complete page scrolling, the browser appears to. Anyone know how its done?
Cheers,
6/7/2010 5:59:27 AM
the script file included in the html page is the secret for sizing the swf file in the page
<script type="text/javascript" src="swffit.js"></script>
the user has called swffit.fit("my_flash");
by passing the swf file id to scale it according to the page
6/7/2010 12:05:32 PM
you can use swffit.js to achieve his
6/7/2010 2:32:19 PM
Thanks for your help guys! Much appreciated :)
6/15/2010 3:44:34 AM
Hey, just stumbled accross this question whilst googling the website you mentioned.
I built the site, and yes the secret is using swffit :)
6/15/2010 3:52:15 AM
Heyy its you! I really love the site, was going to ask you on Flashden but didn't know if I'd catch you in time. I work in a similar field; learning / education with the web - tpet was a great inspiration for me. Really fantastic stuff! :)
6/15/2010 4:24:01 AM
Great to know that what we are doing is helping and inspiring people. If you need some help with any web stuff get in touch - jay [at] flash-junkie [dot] com
6/15/2010 5:04:50 AM
Thanks Jay, I'll write that down! Keep up the great work :D