﻿﻿/*
	Browser Scroll - v1.0
	------------------------------------------------------------
	
	Created					June 2, 2011
	Last Updated			September 17, 2011
	
	AUTHOR(s)				Bill Mackin
	DESCRIPTION				Method to scroll the browser.
	
	Copyright © 2011 Pixlart.
	This "Pixlart Code" is subject to the terms of the Pixlart Source Code License Agreement.  To download a copy of this license, go to http://www.pixlart.net/pixlart_source_code_license.pdf

	http://www.pixlart.net
	info [at] pixlart [dot] net
*/



//  USAGE
////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////
/*
	1.	Add code to HTML --- <script src="js/browser-scroll.js" type="text/javascript" charset="utf-8"></script>
	2.	Add code to Flash --- import com.pixlart.tools.MouseWheel;
	3.	Use the API in MouseWheel.as
*/
////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////

//  NOTES
////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////
/*
	1.	Adjust delta value based on browser/OS.
*/
////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////


function doBrowserScroll(amount) {
	window.scrollBy(0, amount);
}
