<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: scrolloffset(array,get) problem</title>
		<atom:link href="http://cycling74.com/forums/topic/scrolloffsetarrayget-problem/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/scrolloffsetarrayget-problem/feed</link>
		<description></description>
		<pubDate>Wed, 19 Jun 2013 14:04:07 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/scrolloffsetarrayget-problem/#post-44800</guid>
					<title><![CDATA[scrolloffset(array,get) problem]]></title>
					<link>http://cycling74.com/forums/topic/scrolloffsetarrayget-problem/#post-44800</link>
					<pubDate>Mon, 20 Jul 2009 16:31:51 +0000</pubDate>
					<dc:creator>crconover</dc:creator>

					<description>
						<![CDATA[
						<p>Hi,<br />
I&#8217;m trying to write a js object that will return the scroll offset of a patch when banged. It seems pretty straight forward to use the scrolloffset(array,get) method to return these values, but I am receiving an error:  ReferenceError: get is not defined, line 8</p>
<p>I&#8217;ve looked in the reference and it was not entirely clear on this method.</p>
<p>Any help would be great.  My code is listed below.<br />
Thanks in advance,<br />
Chris</p>
<p><div class="pre"></div></p>
<pre>inlets= 1;
outlets= 2;

p= this.patcher;
var offset;

function bang()
{
    p.scrolloffset(offset, get);
    outlet(0,offset[0]);
    outlet(1,offset[1]);
}</pre>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/scrolloffsetarrayget-problem/#post-161256</guid>
					<title><![CDATA[Re: scrolloffset(array,get) problem]]></title>
					<link>http://cycling74.com/forums/topic/scrolloffsetarrayget-problem/#post-161256</link>
					<pubDate>Mon, 20 Jul 2009 19:11:36 +0000</pubDate>
					<dc:creator>Luke Hall</dc:creator>

					<description>
						<![CDATA[
						<p>Scrolloffset is a property of the patcher object rather than a function. Try replacing the first line in your &#8220;bang&#8221; function with the line below and it shouldn&#8217;t cause an error.</p>
<p>lh</p>
<p><div class="pre"></div></p>
<pre>offset = this.patcher.scrolloffset;</pre>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/scrolloffsetarrayget-problem/#post-161257</guid>
					<title><![CDATA[Re: scrolloffset(array,get) problem]]></title>
					<link>http://cycling74.com/forums/topic/scrolloffsetarrayget-problem/#post-161257</link>
					<pubDate>Mon, 20 Jul 2009 19:31:12 +0000</pubDate>
					<dc:creator>crconover</dc:creator>

					<description>
						<![CDATA[
						<p>Thanks for your help, although it still is not outputting the scroll offset of the window&#8230; and I&#8217;m not sure why.  Here is the current code.  Any thoughts?</p>
<p>Thanks,<br />
Chris</p>
<p><div class="pre"></div></p>
<pre>inlets= 1;
outlets= 2;

p= this.patcher;
var offset;

function bang()
{
    offset = this.patcher.scrolloffset;
    outlet(0,offset[0]);
    outlet(1,offset[1]);

}</pre>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/scrolloffsetarrayget-problem/#post-161258</guid>
					<title><![CDATA[Re: scrolloffset(array,get) problem]]></title>
					<link>http://cycling74.com/forums/topic/scrolloffsetarrayget-problem/#post-161258</link>
					<pubDate>Tue, 21 Jul 2009 15:50:33 +0000</pubDate>
					<dc:creator>nicolas danet</dc:creator>

					<description>
						<![CDATA[
						<p>hello chris and maxers,</p>
<p>sorry i don&#8217;t have the solution, and i don&#8217;t understand why ??!</p>
<p>if i do (as you do):</p>
<p>toto = this.patcher.scrolloffset ; </p>
<p>toto[0] is always 0 and toto[1] is always 1 even when i offset the patcher. </p>
<p>Anybody knows ?</p>
<p>nicolas.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/scrolloffsetarrayget-problem/#post-161259</guid>
					<title><![CDATA[Re: scrolloffset(array,get) problem]]></title>
					<link>http://cycling74.com/forums/topic/scrolloffsetarrayget-problem/#post-161259</link>
					<pubDate>Wed, 29 Jul 2009 16:13:45 +0000</pubDate>
					<dc:creator>nicolas danet</dc:creator>

					<description>
						<![CDATA[
						<p>Hello maxers,</p>
<p>in 2004, David Zicarelli wrote in the forum :<br />
<i><br />
So &#8212; the words offset and origin as patcher properties do not work. In <br />
the next version these property names will be changed to scrolloffset <br />
and scrollorigin. However, I think what you really want is the bpatcher <br />
offset, which is not what the &#8220;offset&#8221; property of a Patcher was <br />
supposed to have returned in any case. The patcher offset (soon to be <br />
the scrolloffset) refers to the scrollbar offset of a patcher window, <br />
not the bpatcher&#8217;s offset within a box where the patcher is displayed. <br />
There is currently no way to access the bpatcher offset as a property <br />
since it is specific to a bpatcher (but perhaps there will someday if <br />
the bpatcher gets attributes). </i></p>
<p>according to : i tried several stuff, but always wrong. Is there a bug ?</p>
<p>thanks, </p>
<p>nicolas.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/scrolloffsetarrayget-problem/#post-161260</guid>
					<title><![CDATA[Re: scrolloffset(array,get) problem]]></title>
					<link>http://cycling74.com/forums/topic/scrolloffsetarrayget-problem/#post-161260</link>
					<pubDate>Wed, 29 Jul 2009 18:32:43 +0000</pubDate>
					<dc:creator>crconover</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Nicolas,</p>
<p>The scrolloffset is what we want, but it is currently not working.  Apparently a lot of the JS stuff needs to be re-written and Cycling 74 hasn&#8217;t gotten around to it.  I alerted them of the problem so hopefully it will be fixed soon.</p>
<p>I too am waiting on these fixes to finish up a program I&#8217;ve been working on it.</p>
<p>Best,<br />
Chris</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/scrolloffsetarrayget-problem/#post-161261</guid>
					<title><![CDATA[Re: scrolloffset(array,get) problem]]></title>
					<link>http://cycling74.com/forums/topic/scrolloffsetarrayget-problem/#post-161261</link>
					<pubDate>Mon, 16 Jan 2012 03:50:11 +0000</pubDate>
					<dc:creator>11olsen</dc:creator>

					<description>
						<![CDATA[
						<p>it still doesn&#8217;t work ):</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/scrolloffsetarrayget-problem/#post-161262</guid>
					<title><![CDATA[Re: scrolloffset(array,get) problem]]></title>
					<link>http://cycling74.com/forums/topic/scrolloffsetarrayget-problem/#post-161262</link>
					<pubDate>Thu, 11 Oct 2012 20:35:21 +0000</pubDate>
					<dc:creator>Juan</dc:creator>

					<description>
						<![CDATA[
						<p>I&#8217;m on Max6.0.7 and I&#8217;m also getting 0 and 1 on the scrollbaroffset property. It seems to be broken still. Anybody found a workaround to get scroll position on a patcher (or bpatcher)?</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/scrolloffsetarrayget-problem/#post-161263</guid>
					<title><![CDATA[Re: scrolloffset(array,get) problem]]></title>
					<link>http://cycling74.com/forums/topic/scrolloffsetarrayget-problem/#post-161263</link>
					<pubDate>Mon, 14 Jan 2013 15:12:39 +0000</pubDate>
					<dc:creator>lasmiveni</dc:creator>

					<description>
						<![CDATA[
						<p>My problem was the opposite,<br />
I found this solution, accessing to the wind properties:</p>
<p>inlets = 1;</p>
<p>function bang()<br />
{<br />
    this.patcher.wind.scrollto (X, Y);<br />
}</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

