<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Create an Auto-Scrolling Vertical Content</title>
	<atom:link href="http://www.riacodes.com/flash/create-an-auto-scrolling-vertical-content/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.riacodes.com/flash/create-an-auto-scrolling-vertical-content/</link>
	<description>Resources, tutorials , tips &#38; tricks for RIA : Flex, Flash, Air, AS3</description>
	<lastBuildDate>Fri, 03 Feb 2012 02:30:24 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jordan</title>
		<link>http://www.riacodes.com/flash/create-an-auto-scrolling-vertical-content/comment-page-1/#comment-19041</link>
		<dc:creator>Jordan</dc:creator>
		<pubDate>Thu, 02 Feb 2012 22:46:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=811#comment-19041</guid>
		<description>Hi All! 
Hopefully i get a response to this, but here it goes anyway. i am trying to cnvert this code from AS3 to AS2. i have tried using Noth Flash AS2&#039;s and Andrews version. Currwntly i am getting no compiler errors, but, it does not scroll. my creent code is below. it does work when i am using AS3 and am using the original AS3 code, however im trying to load this into another file i have made already in as2. and alas, you cannot put AS3 SWF&#039;s into AS2 SWf&#039;s. please, as i am on a time crunch, i would love to get an answer ASAP. If i can figure this problem out before an answer is given i will post my findings. 


var verticalCenter:Number = stage.height/2;
var limit:Number = stage.height - content_mc.height;
var speed:Number = 0.1;
var scrollY:Number = 0;

function scrollContent() {
	scrollY = -speed*(_ymouse-verticalCenter);
	content_mc._y+=scrollY;
	if (content_mc._y&gt;0) {
		content_mc._y=0
	}
	else if (content_mc._y&lt;limit){
		content_mc._y=limit;
	}
}</description>
		<content:encoded><![CDATA[<p>Hi All!<br />
Hopefully i get a response to this, but here it goes anyway. i am trying to cnvert this code from AS3 to AS2. i have tried using Noth Flash AS2&#8242;s and Andrews version. Currwntly i am getting no compiler errors, but, it does not scroll. my creent code is below. it does work when i am using AS3 and am using the original AS3 code, however im trying to load this into another file i have made already in as2. and alas, you cannot put AS3 SWF&#8217;s into AS2 SWf&#8217;s. please, as i am on a time crunch, i would love to get an answer ASAP. If i can figure this problem out before an answer is given i will post my findings. </p>
<p>var verticalCenter:Number = stage.height/2;<br />
var limit:Number = stage.height &#8211; content_mc.height;<br />
var speed:Number = 0.1;<br />
var scrollY:Number = 0;</p>
<p>function scrollContent() {<br />
	scrollY = -speed*(_ymouse-verticalCenter);<br />
	content_mc._y+=scrollY;<br />
	if (content_mc._y&gt;0) {<br />
		content_mc._y=0<br />
	}<br />
	else if (content_mc._y&lt;limit){<br />
		content_mc._y=limit;<br />
	}<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: LastArcher</title>
		<link>http://www.riacodes.com/flash/create-an-auto-scrolling-vertical-content/comment-page-1/#comment-16447</link>
		<dc:creator>LastArcher</dc:creator>
		<pubDate>Tue, 27 Dec 2011 13:41:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=811#comment-16447</guid>
		<description>Thanks all

all Works Great
But if U are a beginner than 
do not copy and paste the script in your application 

Just write into it
than works great</description>
		<content:encoded><![CDATA[<p>Thanks all</p>
<p>all Works Great<br />
But if U are a beginner than<br />
do not copy and paste the script in your application </p>
<p>Just write into it<br />
than works great</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scotty G the Webmaster</title>
		<link>http://www.riacodes.com/flash/create-an-auto-scrolling-vertical-content/comment-page-1/#comment-15552</link>
		<dc:creator>Scotty G the Webmaster</dc:creator>
		<pubDate>Fri, 16 Dec 2011 18:54:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=811#comment-15552</guid>
		<description>Thanks for someone finally putting up some code that is short and straight to the point and easy for me to adapt to my project without having to weed through tons of crap to make it work! Perfect!

-Scott</description>
		<content:encoded><![CDATA[<p>Thanks for someone finally putting up some code that is short and straight to the point and easy for me to adapt to my project without having to weed through tons of crap to make it work! Perfect!</p>
<p>-Scott</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: MaHeN</title>
		<link>http://www.riacodes.com/flash/create-an-auto-scrolling-vertical-content/comment-page-1/#comment-11200</link>
		<dc:creator>MaHeN</dc:creator>
		<pubDate>Sun, 07 Aug 2011 17:08:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=811#comment-11200</guid>
		<description>Use This Code if you the content to scroll within a &quot;box&quot;
and giv a instance name of &quot;boxclip&quot; for the box:

var verticalCenter:Number = boxclip.y + ( boxclip.height / 2 );
var limit:Number = boxclip.height - content_mc.height + boxclip.y; 
var speed:Number = 0.1;
var scrollY:Number = 0;

addEventListener(Event.ENTER_FRAME, scrollContent);

function scrollContent(e:Event):void {
	scrollY = - speed * ( mouseY - verticalCenter ); 
	content_mc.y+= scrollY; 
	if (content_mc.y&gt;boxclip.y) { content_mc.y= boxclip.y;}
 	else if (content_mc.y&lt; limit) { content_mc.y= limit; }
}</description>
		<content:encoded><![CDATA[<p>Use This Code if you the content to scroll within a &#8220;box&#8221;<br />
and giv a instance name of &#8220;boxclip&#8221; for the box:</p>
<p>var verticalCenter:Number = boxclip.y + ( boxclip.height / 2 );<br />
var limit:Number = boxclip.height &#8211; content_mc.height + boxclip.y;<br />
var speed:Number = 0.1;<br />
var scrollY:Number = 0;</p>
<p>addEventListener(Event.ENTER_FRAME, scrollContent);</p>
<p>function scrollContent(e:Event):void {<br />
	scrollY = &#8211; speed * ( mouseY &#8211; verticalCenter );<br />
	content_mc.y+= scrollY;<br />
	if (content_mc.y&gt;boxclip.y) { content_mc.y= boxclip.y;}<br />
 	else if (content_mc.y&lt; limit) { content_mc.y= limit; }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chaman</title>
		<link>http://www.riacodes.com/flash/create-an-auto-scrolling-vertical-content/comment-page-1/#comment-11105</link>
		<dc:creator>chaman</dc:creator>
		<pubDate>Thu, 04 Aug 2011 13:25:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=811#comment-11105</guid>
		<description>i want to scroll text automaticaly in loop  in a slide show in as2 pls tell me</description>
		<content:encoded><![CDATA[<p>i want to scroll text automaticaly in loop  in a slide show in as2 pls tell me</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arron M</title>
		<link>http://www.riacodes.com/flash/create-an-auto-scrolling-vertical-content/comment-page-1/#comment-10553</link>
		<dc:creator>Arron M</dc:creator>
		<pubDate>Fri, 15 Jul 2011 17:54:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=811#comment-10553</guid>
		<description>Hey, thanks for this, However I could do with some help, I have used UILoaders to load external images into the content_mc (as I want to be able to replace these images regularily without editing the .flv each time) When I go to test I get the following errors:


Error: Error #2099: The loading object is not sufficiently loaded to provide this information.
	at flash.display::LoaderInfo/get loader()
	at fl.display::ProLoader/get realLoader()
	at fl.display::ProLoaderInfo()
	at fl.display::ProLoader()
	at fl.containers::UILoader/initLoader()
	at fl.containers::UILoader/load()
	at fl.containers::UILoader/set source()
	at AutoScrollingVerticalGallery_fla::Content_1/__setProp_Image006_Content_Layer1_0()
	at AutoScrollingVerticalGallery_fla::Content_1()
	at flash.display::Sprite/constructChildren()
	at flash.display::Sprite()
	at flash.display::MovieClip()
	at AutoScrollingVerticalGallery_fla::MainTimeline()
TypeError: Error #1009: Cannot access a property or method of a null object reference.
	at AutoScrollingVerticalGallery_fla::MainTimeline/frame1()


Could someone please advise?</description>
		<content:encoded><![CDATA[<p>Hey, thanks for this, However I could do with some help, I have used UILoaders to load external images into the content_mc (as I want to be able to replace these images regularily without editing the .flv each time) When I go to test I get the following errors:</p>
<p>Error: Error #2099: The loading object is not sufficiently loaded to provide this information.<br />
	at flash.display::LoaderInfo/get loader()<br />
	at fl.display::ProLoader/get realLoader()<br />
	at fl.display::ProLoaderInfo()<br />
	at fl.display::ProLoader()<br />
	at fl.containers::UILoader/initLoader()<br />
	at fl.containers::UILoader/load()<br />
	at fl.containers::UILoader/set source()<br />
	at AutoScrollingVerticalGallery_fla::Content_1/__setProp_Image006_Content_Layer1_0()<br />
	at AutoScrollingVerticalGallery_fla::Content_1()<br />
	at flash.display::Sprite/constructChildren()<br />
	at flash.display::Sprite()<br />
	at flash.display::MovieClip()<br />
	at AutoScrollingVerticalGallery_fla::MainTimeline()<br />
TypeError: Error #1009: Cannot access a property or method of a null object reference.<br />
	at AutoScrollingVerticalGallery_fla::MainTimeline/frame1()</p>
<p>Could someone please advise?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rupali</title>
		<link>http://www.riacodes.com/flash/create-an-auto-scrolling-vertical-content/comment-page-1/#comment-10488</link>
		<dc:creator>Rupali</dc:creator>
		<pubDate>Tue, 12 Jul 2011 05:42:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=811#comment-10488</guid>
		<description>Hi,

I used this link for image scrolling, I want to link the image to another page, please tell me how to do it

var verticalCenter:Number = stage.stageHeight / 2;
var limit:Number = stage.stageHeight - content_mc.height; 
var speed:Number = 0.05;
var scrollY:Number = 0;

addEventListener(Event.ENTER_FRAME, scrollContent);

function scrollContent(e:Event):void {
	scrollY = - speed * ( mouseY - verticalCenter ); 
	content_mc.y+= scrollY; 
	if (content_mc.y&gt;0) { content_mc.y= 0;}
 	else if (content_mc.y&lt; limit) { content_mc.y= limit; }
}</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I used this link for image scrolling, I want to link the image to another page, please tell me how to do it</p>
<p>var verticalCenter:Number = stage.stageHeight / 2;<br />
var limit:Number = stage.stageHeight &#8211; content_mc.height;<br />
var speed:Number = 0.05;<br />
var scrollY:Number = 0;</p>
<p>addEventListener(Event.ENTER_FRAME, scrollContent);</p>
<p>function scrollContent(e:Event):void {<br />
	scrollY = &#8211; speed * ( mouseY &#8211; verticalCenter );<br />
	content_mc.y+= scrollY;<br />
	if (content_mc.y&gt;0) { content_mc.y= 0;}<br />
 	else if (content_mc.y&lt; limit) { content_mc.y= limit; }<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neel</title>
		<link>http://www.riacodes.com/flash/create-an-auto-scrolling-vertical-content/comment-page-1/#comment-10307</link>
		<dc:creator>Neel</dc:creator>
		<pubDate>Mon, 04 Jul 2011 10:23:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=811#comment-10307</guid>
		<description>its very easy and usefull. i need  same easy  Horizontal  Auto-Scrolling Content.</description>
		<content:encoded><![CDATA[<p>its very easy and usefull. i need  same easy  Horizontal  Auto-Scrolling Content.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emran Naziri</title>
		<link>http://www.riacodes.com/flash/create-an-auto-scrolling-vertical-content/comment-page-1/#comment-10190</link>
		<dc:creator>Emran Naziri</dc:creator>
		<pubDate>Wed, 29 Jun 2011 07:17:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=811#comment-10190</guid>
		<description>Dear All,

How can i make the above scroller work in a loop. Appreciate your help guys.

God Bless</description>
		<content:encoded><![CDATA[<p>Dear All,</p>
<p>How can i make the above scroller work in a loop. Appreciate your help guys.</p>
<p>God Bless</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven</title>
		<link>http://www.riacodes.com/flash/create-an-auto-scrolling-vertical-content/comment-page-1/#comment-9660</link>
		<dc:creator>Steven</dc:creator>
		<pubDate>Thu, 02 Jun 2011 19:08:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.riacodes.com/?p=811#comment-9660</guid>
		<description>OMG THANKS ive been looking all over for something like this</description>
		<content:encoded><![CDATA[<p>OMG THANKS ive been looking all over for something like this</p>
]]></content:encoded>
	</item>
</channel>
</rss>

