<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Easy Flash Custom Scrollbar Class (AS2)</title>
	<atom:link href="http://www.taterboy.com/blog/2008/09/easy-flash-custom-scrollbar-class-as2/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.taterboy.com/blog/2008/09/easy-flash-custom-scrollbar-class-as2/</link>
	<description>FLASH :: FLEX :: ILLUSTRATION :: ANIMATION</description>
	<pubDate>Wed, 07 Jan 2009 05:16:14 +0000</pubDate>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>By: taterboy</title>
		<link>http://www.taterboy.com/blog/2008/09/easy-flash-custom-scrollbar-class-as2/#comment-201</link>
		<dc:creator>taterboy</dc:creator>
		<pubDate>Thu, 04 Dec 2008 08:27:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.taterboy.com/blog/?p=25#comment-201</guid>
		<description>These variables control how far the scroll bar moves left and right
scrollObj.barslack
scrollObj.scrolldist (this is the one I would try first)

also in the startDrag method, there are calculations for the left and right end points. You would have to add some buffer code in there too. 

First make sure all the art work and scroll object's x and y coordinates are whole numbers if you are placing things on the stage. This helps the calculations. For some reason, things start to over lap when the coordinates are not whole numbers. I try to adjust this in the class and this may not be an issue, but something worth looking into.</description>
		<content:encoded><![CDATA[<p>These variables control how far the scroll bar moves left and right<br />
scrollObj.barslack<br />
scrollObj.scrolldist (this is the one I would try first)</p>
<p>also in the startDrag method, there are calculations for the left and right end points. You would have to add some buffer code in there too. </p>
<p>First make sure all the art work and scroll object&#8217;s x and y coordinates are whole numbers if you are placing things on the stage. This helps the calculations. For some reason, things start to over lap when the coordinates are not whole numbers. I try to adjust this in the class and this may not be an issue, but something worth looking into.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.taterboy.com/blog/2008/09/easy-flash-custom-scrollbar-class-as2/#comment-200</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Thu, 04 Dec 2008 05:52:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.taterboy.com/blog/?p=25#comment-200</guid>
		<description>Great scroller!  Nice and simple.  Easy to customize.  Quick question, can I add a "buffer" to the end of the horizontal scroll?  My scroll bar goes about 5-10 pixels to far to the right.</description>
		<content:encoded><![CDATA[<p>Great scroller!  Nice and simple.  Easy to customize.  Quick question, can I add a &#8220;buffer&#8221; to the end of the horizontal scroll?  My scroll bar goes about 5-10 pixels to far to the right.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: taterboy</title>
		<link>http://www.taterboy.com/blog/2008/09/easy-flash-custom-scrollbar-class-as2/#comment-194</link>
		<dc:creator>taterboy</dc:creator>
		<pubDate>Sun, 30 Nov 2008 03:52:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.taterboy.com/blog/?p=25#comment-194</guid>
		<description>The horizontal version has been updated, http://www.taterboy.com/blog/downloads/scrollHorizontal.zip
I was planning on updating everything, thanks for keeping me honest.</description>
		<content:encoded><![CDATA[<p>The horizontal version has been updated, <a href="http://www.taterboy.com/blog/downloads/scrollHorizontal.zip" rel="nofollow">http://www.taterboy.com/blog/downloads/scrollHorizontal.zip</a><br />
I was planning on updating everything, thanks for keeping me honest.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Skipp</title>
		<link>http://www.taterboy.com/blog/2008/09/easy-flash-custom-scrollbar-class-as2/#comment-193</link>
		<dc:creator>Skipp</dc:creator>
		<pubDate>Fri, 28 Nov 2008 17:20:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.taterboy.com/blog/?p=25#comment-193</guid>
		<description>Thanks for the bugs fix!!   Do you have de fix for the Horizontal version also?  

When you have time, it would be nice to have the horizontal version in the same class and specified by a parameter.... I'm making your work here!! ;)

Thanks a lot, very nice work!!</description>
		<content:encoded><![CDATA[<p>Thanks for the bugs fix!!   Do you have de fix for the Horizontal version also?  </p>
<p>When you have time, it would be nice to have the horizontal version in the same class and specified by a parameter&#8230;. I&#8217;m making your work here!! ;)</p>
<p>Thanks a lot, very nice work!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carlitos</title>
		<link>http://www.taterboy.com/blog/2008/09/easy-flash-custom-scrollbar-class-as2/#comment-192</link>
		<dc:creator>Carlitos</dc:creator>
		<pubDate>Wed, 26 Nov 2008 20:18:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.taterboy.com/blog/?p=25#comment-192</guid>
		<description>I swapped your "less text" variable for my myLV.load(myVars) statement but it works. Thanks a ton I dig the edit ability of this and I wanted to use it as I have a couple others that I normally use but this was more fitting to what I was working on.

Thanks again

c.</description>
		<content:encoded><![CDATA[<p>I swapped your &#8220;less text&#8221; variable for my myLV.load(myVars) statement but it works. Thanks a ton I dig the edit ability of this and I wanted to use it as I have a couple others that I normally use but this was more fitting to what I was working on.</p>
<p>Thanks again</p>
<p>c.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: taterboy</title>
		<link>http://www.taterboy.com/blog/2008/09/easy-flash-custom-scrollbar-class-as2/#comment-191</link>
		<dc:creator>taterboy</dc:creator>
		<pubDate>Wed, 26 Nov 2008 19:28:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.taterboy.com/blog/?p=25#comment-191</guid>
		<description>Here is some sample code I used to get css to work with this setup.

first change the textField font type to Device Font.

&lt;pre lang="as"&gt;
//to load css
var cssStyles:TextField.StyleSheet = new TextField.StyleSheet();
cssStyles.onLoad = function (success) {
	trace(success);
	if (success) {
		sClip.op.styleSheet = cssStyles;
		sClip.op.htmlText = "&lt;p class='body'&gt;" + lessText +"&lt;/p&gt;";
		sClip.setMask(tMask);
		//myLV.load(myVars);
		trace("css styled text has loaded into dynamic text field");
	} else {
		trace("error");
		sClip.op.text = "There has been an error loading the requested information.  Please contact the Webmaster and report your error.";
	}
}	
cssStyles.load ("whiteStyles.css");
&lt;/pre&gt;

//css file (whiteStyles.css)
.body {
	 font-family: Arial, Helvetica, sans-serif;
	 font-size: 24px;
	 font-weight: bold;
	 color:#00ff00;
 }</description>
		<content:encoded><![CDATA[<p>Here is some sample code I used to get css to work with this setup.</p>
<p>first change the textField font type to Device Font.</p>

<div class="wp_codebox_msgheader"><span class="codebox_right"><a href="javascript:;" onclick="toggle_collapse('251');">[<span id="251_symbol">-</span>]</a></span><span class="codebox_left"><span id="l25code1"><a href="javascript:;" onclick="javascript:showCodeTxt('25code1'); return false;">View Code</a> AS</span></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="251"><td class="code" id="25code1"><pre>//to load css
var cssStyles:TextField.StyleSheet = new TextField.StyleSheet();
cssStyles.onLoad = function (success) {
	trace(success);
	if (success) {
		sClip.op.styleSheet = cssStyles;
		sClip.op.htmlText = &quot;&lt;p class='body'&gt;&quot; + lessText +&quot;&lt;/p&gt;&quot;;
		sClip.setMask(tMask);
		//myLV.load(myVars);
		trace(&quot;css styled text has loaded into dynamic text field&quot;);
	} else {
		trace(&quot;error&quot;);
		sClip.op.text = &quot;There has been an error loading the requested information.  Please contact the Webmaster and report your error.&quot;;
	}
}	
cssStyles.load (&quot;whiteStyles.css&quot;);</pre></td></tr></table></div>

<p>//css file (whiteStyles.css)<br />
.body {<br />
	 font-family: Arial, Helvetica, sans-serif;<br />
	 font-size: 24px;<br />
	 font-weight: bold;<br />
	 color:#00ff00;<br />
 }</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: taterboy</title>
		<link>http://www.taterboy.com/blog/2008/09/easy-flash-custom-scrollbar-class-as2/#comment-190</link>
		<dc:creator>taterboy</dc:creator>
		<pubDate>Wed, 26 Nov 2008 19:25:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.taterboy.com/blog/?p=25#comment-190</guid>
		<description>The class has been updated to fix both issues from comment 30.</description>
		<content:encoded><![CDATA[<p>The class has been updated to fix both issues from comment 30.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rood</title>
		<link>http://www.taterboy.com/blog/2008/09/easy-flash-custom-scrollbar-class-as2/#comment-189</link>
		<dc:creator>Rood</dc:creator>
		<pubDate>Tue, 25 Nov 2008 22:45:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.taterboy.com/blog/?p=25#comment-189</guid>
		<description>Nice coding!

But is there already a fix for comment 30 - problem 1?

I'm having the same problem, please help!</description>
		<content:encoded><![CDATA[<p>Nice coding!</p>
<p>But is there already a fix for comment 30 - problem 1?</p>
<p>I&#8217;m having the same problem, please help!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carlitos</title>
		<link>http://www.taterboy.com/blog/2008/09/easy-flash-custom-scrollbar-class-as2/#comment-187</link>
		<dc:creator>Carlitos</dc:creator>
		<pubDate>Tue, 18 Nov 2008 19:45:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.taterboy.com/blog/?p=25#comment-187</guid>
		<description>Sorry didnt know how to wrap code. Tried using the typical &lt;code&gt;&lt;/code&gt; syntax but didnt work.

c.</description>
		<content:encoded><![CDATA[<p>Sorry didnt know how to wrap code. Tried using the typical <code></code> syntax but didnt work.</p>
<p>c.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Carlitos</title>
		<link>http://www.taterboy.com/blog/2008/09/easy-flash-custom-scrollbar-class-as2/#comment-186</link>
		<dc:creator>Carlitos</dc:creator>
		<pubDate>Tue, 18 Nov 2008 19:33:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.taterboy.com/blog/?p=25#comment-186</guid>
		<description>So I am trying to load a loadVars and then style sheet into the sClip movie and it comes up invisible. I am not getting errors and if I like select the "invisible" text I can in fact copy and past. I have my own non-eased version of a scroller but this I cannot get to work on your wonderful class.

&lt;pre lang="as"&gt;


import com.hdi.util.HDScrollMC;	
 

var myFlashVar:String = myVars;

sectionLabel.text = sectionTitle;
var tvColor:String = sectionColor;


trace("the TV BG color is" + tvColor);

//---------------------------------\\
var myLV:LoadVars = new LoadVars();

myLV.onLoad = function (success) {
	if (success){
		trace("initial load vars success");
		sClip.op.htmlText = myLV.info;
	} else {
		sClip.op.text = "There has been an error loading the requested information.  Please contact the Webmaster and report your error.";
	}
}
//---------------------------------\\

//---------------------------\\
var cssStyles:TextField.StyleSheet = new TextField.StyleSheet ();
cssStyles.load ("whiteStyles.css");
trace("css var loaded");
cssStyles.onLoad = function (success) {
	if (success) {
		sClip.op.styleSheet = cssStyles;
		myLV.load(myVars);
		trace("css styled text has loaded into dynamic text field");
	} else {
		sClip.op.text = "There has been an error loading the requested information.  Please contact the Webmaster and report your error.";
	}
}	
//---------------------------\\



tvBody_mc.gotoAndPlay(tvColor);

stop();



sectionLabel.autoSize = TextFieldAutoSize.LEFT;


tvBody_mc.host_mc.setMask(screenMask_mc);



// NEW SCROLLER ACTIONS

//HDScrollMC(ScrollObject,ScrollMovieClip,MaskMC,UpButton,DownButton,ScrollBar,
	//ScrollBarResize,ScrollBkg,ScrollBkgHide,DownButtonFlip,ResizeScrollObjects,AutoOn,Ease);
	
sbars._alpha = 0;
sbars.sbar.scale9Grid = true;
var scrollSet:HDScrollMC = new HDScrollMC(sbars,sClip,tMask,sbars.upBtn,sbars.dwnBtn,sbars.sbar,true,sbars.sbkg,false,false,true,true,10);

btn1.onRelease = function(){
	sClip.op.htmlText = myLV.info;
	sClip.op.autoSize = true;
}
btn2.onRelease = function(){
	sClip.op.htmlText = myLV2.info;
	sClip.op.autoSize = true;
}

stop();

&lt;/code&gt;


From my txt file that gets called from a flashVars set on the html:

&lt;code&gt;
info=PRIZE BONANZA 

Win $750, $1,000, or $1,250 if you refer a winner.
New this year. Every month several HOT JOBS will qualify for double loot. HOT JOBS are SSOE%27s hard to fill positions. Prizes for a HOT JOBS hire are $1,500, $2,000 and $2,500.
THERE%27S MORE! You%27ll get to spin the wheel and win one of these prizes:

 Big screen TV 
 Navigation system 

&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>So I am trying to load a loadVars and then style sheet into the sClip movie and it comes up invisible. I am not getting errors and if I like select the &#8220;invisible&#8221; text I can in fact copy and past. I have my own non-eased version of a scroller but this I cannot get to work on your wonderful class.</p>

<div class="wp_codebox_msgheader"><span class="codebox_right"><a href="javascript:;" onclick="toggle_collapse('252');">[<span id="252_symbol">-</span>]</a></span><span class="codebox_left"><span id="l25code2"><a href="javascript:;" onclick="javascript:showCodeTxt('25code2'); return false;">View Code</a> AS</span></span><div class="codebox_clear"></div></div><div class="wp_codebox"><table width="100%" ><tr id="252"><td class="code" id="25code2"><pre>&nbsp;
&nbsp;
import com.hdi.util.HDScrollMC;	
&nbsp;
&nbsp;
var myFlashVar:String = myVars;
&nbsp;
sectionLabel.text = sectionTitle;
var tvColor:String = sectionColor;
&nbsp;
&nbsp;
trace(&quot;the TV BG color is&quot; + tvColor);
&nbsp;
//---------------------------------\\
var myLV:LoadVars = new LoadVars();
&nbsp;
myLV.onLoad = function (success) {
	if (success){
		trace(&quot;initial load vars success&quot;);
		sClip.op.htmlText = myLV.info;
	} else {
		sClip.op.text = &quot;There has been an error loading the requested information.  Please contact the Webmaster and report your error.&quot;;
	}
}
//---------------------------------\\
&nbsp;
//---------------------------\\
var cssStyles:TextField.StyleSheet = new TextField.StyleSheet ();
cssStyles.load (&quot;whiteStyles.css&quot;);
trace(&quot;css var loaded&quot;);
cssStyles.onLoad = function (success) {
	if (success) {
		sClip.op.styleSheet = cssStyles;
		myLV.load(myVars);
		trace(&quot;css styled text has loaded into dynamic text field&quot;);
	} else {
		sClip.op.text = &quot;There has been an error loading the requested information.  Please contact the Webmaster and report your error.&quot;;
	}
}	
//---------------------------\\
&nbsp;
&nbsp;
&nbsp;
tvBody_mc.gotoAndPlay(tvColor);
&nbsp;
stop();
&nbsp;
&nbsp;
&nbsp;
sectionLabel.autoSize = TextFieldAutoSize.LEFT;
&nbsp;
&nbsp;
tvBody_mc.host_mc.setMask(screenMask_mc);
&nbsp;
&nbsp;
&nbsp;
// NEW SCROLLER ACTIONS
&nbsp;
//HDScrollMC(ScrollObject,ScrollMovieClip,MaskMC,UpButton,DownButton,ScrollBar,
	//ScrollBarResize,ScrollBkg,ScrollBkgHide,DownButtonFlip,ResizeScrollObjects,AutoOn,Ease);
&nbsp;
sbars._alpha = 0;
sbars.sbar.scale9Grid = true;
var scrollSet:HDScrollMC = new HDScrollMC(sbars,sClip,tMask,sbars.upBtn,sbars.dwnBtn,sbars.sbar,true,sbars.sbkg,false,false,true,true,10);
&nbsp;
btn1.onRelease = function(){
	sClip.op.htmlText = myLV.info;
	sClip.op.autoSize = true;
}
btn2.onRelease = function(){
	sClip.op.htmlText = myLV2.info;
	sClip.op.autoSize = true;
}
&nbsp;
stop();
&nbsp;
&lt;/code&gt;
&nbsp;
&nbsp;
From my txt file that gets called from a flashVars set on the html:
&nbsp;
&lt;code&gt;
info=PRIZE BONANZA 
&nbsp;
Win $750, $1,000, or $1,250 if you refer a winner.
New this year. Every month several HOT JOBS will qualify for double loot. HOT JOBS are SSOE%27s hard to fill positions. Prizes for a HOT JOBS hire are $1,500, $2,000 and $2,500.
THERE%27S MORE! You%27ll get to spin the wheel and win one of these prizes:
&nbsp;
 Big screen TV 
 Navigation system</pre></td></tr></table></div>

]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 1.217 seconds -->
