<?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: Using Phidget Sensors to trigger an animation in as3.</title>
	<atom:link href="http://www.benarent.co.uk/bog/phidget/using-phidget-sensors-to-trigger-an-animation-in-as3/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.benarent.co.uk/bog/phidget/using-phidget-sensors-to-trigger-an-animation-in-as3/</link>
	<description>product design from a new generation of connected, enviromentally aware product designer</description>
	<pubDate>Wed, 07 Jan 2009 03:08:27 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Femke</title>
		<link>http://www.benarent.co.uk/bog/phidget/using-phidget-sensors-to-trigger-an-animation-in-as3/comment-page-1/#comment-13493</link>
		<dc:creator>Femke</dc:creator>
		<pubDate>Thu, 01 May 2008 20:24:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.benarent.co.uk/bog/phidget/using-phidget-sensors-to-trigger-an-animation-in-as3/#comment-13493</guid>
		<description>Hey, 
Thanks for putting your project on line, I have a similar project were I want to move a slider, but in function of a stretch sensor. I am not that good at AS3. But I'll will try your example ;) . 

greetz</description>
		<content:encoded><![CDATA[<p>Hey,<br />
Thanks for putting your project on line, I have a similar project were I want to move a slider, but in function of a stretch sensor. I am not that good at AS3. But I&#8217;ll will try your example <img src='http://www.benarent.co.uk/bog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> . </p>
<p>greetz</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: benarent</title>
		<link>http://www.benarent.co.uk/bog/phidget/using-phidget-sensors-to-trigger-an-animation-in-as3/comment-page-1/#comment-11179</link>
		<dc:creator>benarent</dc:creator>
		<pubDate>Fri, 28 Mar 2008 00:53:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.benarent.co.uk/bog/phidget/using-phidget-sensors-to-trigger-an-animation-in-as3/#comment-11179</guid>
		<description>Hey Andrew,

Thanks for the comment. I shall try that out.  I'm having real fun teaching my self AS3 and Phidgets, and just trying to put more stuff out there to make it easier for others.  

Changing the tweener based on a math.round feature sounds really interested. I shall look into it.</description>
		<content:encoded><![CDATA[<p>Hey Andrew,</p>
<p>Thanks for the comment. I shall try that out.  I&#8217;m having real fun teaching my self AS3 and Phidgets, and just trying to put more stuff out there to make it easier for others.  </p>
<p>Changing the tweener based on a math.round feature sounds really interested. I shall look into it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrew</title>
		<link>http://www.benarent.co.uk/bog/phidget/using-phidget-sensors-to-trigger-an-animation-in-as3/comment-page-1/#comment-11177</link>
		<dc:creator>Andrew</dc:creator>
		<pubDate>Fri, 28 Mar 2008 00:41:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.benarent.co.uk/bog/phidget/using-phidget-sensors-to-trigger-an-animation-in-as3/#comment-11177</guid>
		<description>&lt;p&gt;Ben,&lt;/p&gt;
&lt;p&gt;Very nice demonstration. Your handling of the sensor inputs through if statements is exactly how it should be done, though you could just stick all that code in the onSensorChange function.&lt;/p&gt;
&lt;p&gt;If you want to adjust the height of the slider based on the evt.Data you could change your tweener call to something like this (given range 0-500):&lt;/p&gt;
&lt;p&gt;Tweener.addTween(slider1, {_frame:Math.round((evt.Data/500)*30), time:0, transition:”linear”});&lt;/p&gt;
&lt;p&gt;This will tell the animation to go to the frame that is percentage-wise the same as how strong the sensor is reading, so a reading of 250 would essentially make the slider go to frame 15.&lt;/p&gt;
&lt;p&gt;time is set to 0 because in theory as the sensor value climbs it will move 1 frame at a time just based on the math it is doing.&lt;/p&gt;
&lt;code&gt;'&#038;&#038; evt.Data&lt;400'&lt;/code&gt; from your if statements, and you can then remove all your 'else if's since a reading of 0 should animate to frame 0.

I haven't yet bought my phigdets, but I think I will be going for the 8/8/8 LCD display board with some magnet and vibration sensors to play around with.

Great Stuff, keep it up!

-Andrew Walpole
</description>
		<content:encoded><![CDATA[<p>Ben,</p>
<p>Very nice demonstration. Your handling of the sensor inputs through if statements is exactly how it should be done, though you could just stick all that code in the onSensorChange function.</p>
<p>If you want to adjust the height of the slider based on the evt.Data you could change your tweener call to something like this (given range 0-500):</p>
<p>Tweener.addTween(slider1, {_frame:Math.round((evt.Data/500)*30), time:0, transition:”linear”});</p>
<p>This will tell the animation to go to the frame that is percentage-wise the same as how strong the sensor is reading, so a reading of 250 would essentially make the slider go to frame 15.</p>
<p>time is set to 0 because in theory as the sensor value climbs it will move 1 frame at a time just based on the math it is doing.</p>
<p><code>'&#038;&#038; evt.Data&lt;400'</code> from your if statements, and you can then remove all your &#8216;else if&#8217;s since a reading of 0 should animate to frame 0.</p>
<p>I haven&#8217;t yet bought my phigdets, but I think I will be going for the 8/8/8 LCD display board with some magnet and vibration sensors to play around with.</p>
<p>Great Stuff, keep it up!</p>
<p>-Andrew Walpole</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julie</title>
		<link>http://www.benarent.co.uk/bog/phidget/using-phidget-sensors-to-trigger-an-animation-in-as3/comment-page-1/#comment-10531</link>
		<dc:creator>Julie</dc:creator>
		<pubDate>Sun, 16 Mar 2008 21:45:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.benarent.co.uk/bog/phidget/using-phidget-sensors-to-trigger-an-animation-in-as3/#comment-10531</guid>
		<description>hi... I have one Magnet sensor... and I'm trying your "applet" on index 0, (sensor 1), and it's not working...

as output I've got :
[ Phidget Event: connect]
Ignoring policy file with incorrect syntax: xmlsocket://localhot:5001

and that's it... I don't get like "magnet 1 - ON" or either off...

can u help me please! It's really important...</description>
		<content:encoded><![CDATA[<p>hi&#8230; I have one Magnet sensor&#8230; and I&#8217;m trying your &#8220;applet&#8221; on index 0, (sensor 1), and it&#8217;s not working&#8230;</p>
<p>as output I&#8217;ve got :<br />
[ Phidget Event: connect]<br />
Ignoring policy file with incorrect syntax: xmlsocket://localhot:5001</p>
<p>and that&#8217;s it&#8230; I don&#8217;t get like &#8220;magnet 1 - ON&#8221; or either off&#8230;</p>
<p>can u help me please! It&#8217;s really important&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
