header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
liquidvisual
Points:110
Posts:0
Answered

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,



1
MaxFlash
Points: 580
Posts:0
Accepted Answer
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

2
Mike Twain
Points: 0
Posts:0
6/7/2010 12:05:32 PM



you can use swffit.js to achieve his

3
liquidvisual
Points: 110
Posts:0
6/7/2010 2:32:19 PM



Thanks for your help guys! Much appreciated :)

4
Jason
Points: 0
Posts:0
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 :)

5
liquidvisual
Points: 110
Posts:0
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
FlashJunkie
Points: 0
Posts:0
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

7
liquidvisual
Points: 110
Posts:0
6/15/2010 5:04:50 AM



Thanks Jay, I'll write that down! Keep up the great work :D


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 2+8 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions