<?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: 9. Basic Interactivity</title>
	<atom:link href="http://papervision2.com/basic-interactivity/feed/" rel="self" type="application/rss+xml" />
	<link>http://papervision2.com/basic-interactivity/</link>
	<description>Papervision2.com - Best resource for Papervision3d tutorials</description>
	<lastBuildDate>Thu, 15 Jul 2010 18:38:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
	<item>
		<title>By: Roundup of the Best Papervision 3D Tutorials &#124; Papervision Tutorials</title>
		<link>http://papervision2.com/basic-interactivity/comment-page-2/#comment-83514</link>
		<dc:creator>Roundup of the Best Papervision 3D Tutorials &#124; Papervision Tutorials</dc:creator>
		<pubDate>Fri, 18 Jun 2010 10:06:50 +0000</pubDate>
		<guid isPermaLink="false">http://papervision2.com/basic-interactivity/#comment-83514</guid>
		<description>[...] *** Basic Interactivity Tutorial [...]</description>
		<content:encoded><![CDATA[<p>[...] *** Basic Interactivity Tutorial [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JackLi</title>
		<link>http://papervision2.com/basic-interactivity/comment-page-2/#comment-25809</link>
		<dc:creator>JackLi</dc:creator>
		<pubDate>Tue, 08 Dec 2009 01:21:46 +0000</pubDate>
		<guid isPermaLink="false">http://papervision2.com/basic-interactivity/#comment-25809</guid>
		<description>plane.addEventListener( InteractiveScene3DEvent.OBJECT_PRESS, onPress ); 
plane.addEventListener( InteractiveScene3DEvent.OBJECT_OVER, onOver );
plane.addEventListener( InteractiveScene3DEvent.OBJECT_OUT, onOut );
Scense u have add set the material&#039;s interactive = true,I think it should  add the listener to the material</description>
		<content:encoded><![CDATA[<p>plane.addEventListener( InteractiveScene3DEvent.OBJECT_PRESS, onPress );<br />
plane.addEventListener( InteractiveScene3DEvent.OBJECT_OVER, onOver );<br />
plane.addEventListener( InteractiveScene3DEvent.OBJECT_OUT, onOut );<br />
Scense u have add set the material&#8217;s interactive = true,I think it should  add the listener to the material</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: blueicexav</title>
		<link>http://papervision2.com/basic-interactivity/comment-page-2/#comment-21966</link>
		<dc:creator>blueicexav</dc:creator>
		<pubDate>Fri, 06 Nov 2009 18:53:15 +0000</pubDate>
		<guid isPermaLink="false">http://papervision2.com/basic-interactivity/#comment-21966</guid>
		<description>Hi there, great tutorial
I&#039;ve managed to integrate the paperbase, the cone example and this basic interactive example into my flex project.

I&#039;ve also looked at the 3D Cube advanced interactivity example.

I saw that it is possible to change the images assigned on each face of the cube.
I&#039;m wondering if its possible to do the same thing on this plane example?
If so how?

Thanks in advance</description>
		<content:encoded><![CDATA[<p>Hi there, great tutorial<br />
I&#8217;ve managed to integrate the paperbase, the cone example and this basic interactive example into my flex project.</p>
<p>I&#8217;ve also looked at the 3D Cube advanced interactivity example.</p>
<p>I saw that it is possible to change the images assigned on each face of the cube.<br />
I&#8217;m wondering if its possible to do the same thing on this plane example?<br />
If so how?</p>
<p>Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zdun</title>
		<link>http://papervision2.com/basic-interactivity/comment-page-2/#comment-20903</link>
		<dc:creator>Zdun</dc:creator>
		<pubDate>Fri, 23 Oct 2009 18:02:13 +0000</pubDate>
		<guid isPermaLink="false">http://papervision2.com/basic-interactivity/#comment-20903</guid>
		<description>Ok i found the solution on other website:

by zhivko :

had the same problem. You need to attach the event to a child of the DAE object, not to the DAE object directly. It is a bit quirky getting down to the name of the child - you need to attach a Event.COMPLETE to your DAE, and within it try trace myDAE.childrenList() to get the name of the first object in your DAE, then myDAE.getChildByName(&quot;name of the first object in your DAE&quot;).childrenList() and so on until you reach the innermost object. my code looked like this:


var plane:DAE = new DAE();
plane.load(&quot;plane.dae&quot;, materialsList);
plane.scale = 100;
default_scene.addChild(plane);
plane.addEventListener(Event.COMPLETE, daeCompleteHandler);
function daeCompleteHandler( event:Event ):void
        { plane.getChildByName(&quot;COLLADA_root&quot;).getChildByName(&quot;Plane&quot;).getChildByName(&quot;6&quot;).addEventListener( InteractiveScene3DEvent.OBJECT_OVER, onOver );
        } 


I actually traced my DAE objects till the innermost like he said but i didnt use Event.COMPLETE function and just skipped and went straight to addEventListener like he wrote and it solved my problem. Cheers :)</description>
		<content:encoded><![CDATA[<p>Ok i found the solution on other website:</p>
<p>by zhivko :</p>
<p>had the same problem. You need to attach the event to a child of the DAE object, not to the DAE object directly. It is a bit quirky getting down to the name of the child &#8211; you need to attach a Event.COMPLETE to your DAE, and within it try trace myDAE.childrenList() to get the name of the first object in your DAE, then myDAE.getChildByName(&#8220;name of the first object in your DAE&#8221;).childrenList() and so on until you reach the innermost object. my code looked like this:</p>
<p>var plane:DAE = new DAE();<br />
plane.load(&#8220;plane.dae&#8221;, materialsList);<br />
plane.scale = 100;<br />
default_scene.addChild(plane);<br />
plane.addEventListener(Event.COMPLETE, daeCompleteHandler);<br />
function daeCompleteHandler( event:Event ):void<br />
        { plane.getChildByName(&#8220;COLLADA_root&#8221;).getChildByName(&#8220;Plane&#8221;).getChildByName(&#8220;6&#8243;).addEventListener( InteractiveScene3DEvent.OBJECT_OVER, onOver );<br />
        } </p>
<p>I actually traced my DAE objects till the innermost like he said but i didnt use Event.COMPLETE function and just skipped and went straight to addEventListener like he wrote and it solved my problem. Cheers :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zdun</title>
		<link>http://papervision2.com/basic-interactivity/comment-page-2/#comment-20902</link>
		<dc:creator>Zdun</dc:creator>
		<pubDate>Fri, 23 Oct 2009 17:25:17 +0000</pubDate>
		<guid isPermaLink="false">http://papervision2.com/basic-interactivity/#comment-20902</guid>
		<description>Here is some code:
var bm : Bitmap ...
var bitmapMaterial : BitmapMaterial = new BitmapMaterial(bm.bitmapData);
bitmapMaterial.interactive = true;
bitmapMaterial.doubleSided = true;
var mats : MaterialsList = new MaterialsList();
mats.addMaterial(bitmapMaterial, &quot;sphere_Sphere_jpg-img&quot;);  
this._obj = new DAE();  
this._obj.load(_dae,mats); 
then im passing this object model to the Main class, similiar to the one from this tutorial, even tried to add it to the scene as DisplayObject3D but no diffrence. Rest of code is same like here...Please help ;)</description>
		<content:encoded><![CDATA[<p>Here is some code:<br />
var bm : Bitmap &#8230;<br />
var bitmapMaterial : BitmapMaterial = new BitmapMaterial(bm.bitmapData);<br />
bitmapMaterial.interactive = true;<br />
bitmapMaterial.doubleSided = true;<br />
var mats : MaterialsList = new MaterialsList();<br />
mats.addMaterial(bitmapMaterial, &#8220;sphere_Sphere_jpg-img&#8221;);<br />
this._obj = new DAE();<br />
this._obj.load(_dae,mats);<br />
then im passing this object model to the Main class, similiar to the one from this tutorial, even tried to add it to the scene as DisplayObject3D but no diffrence. Rest of code is same like here&#8230;Please help ;)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zdun</title>
		<link>http://papervision2.com/basic-interactivity/comment-page-2/#comment-20901</link>
		<dc:creator>Zdun</dc:creator>
		<pubDate>Fri, 23 Oct 2009 17:17:12 +0000</pubDate>
		<guid isPermaLink="false">http://papervision2.com/basic-interactivity/#comment-20901</guid>
		<description>Hi. Those tutorials are really great and helpful. This Interactivity is working fine for me when i use Your Plane Objects, however its now working with other objects like DAE objects at all :&lt; dunno exacly why. i set viewport.interactive = true and i used 
var bitmapMaterial : BitmapMaterial = new BitmapMaterial(bm.bitmapData);
bitmapMaterial.interactive = true; 
I think this material is still not interactive, i tried diffrent materials not only bitmaps and i found only way to set them interactive like above but this seem not working properly. Any ideas ?</description>
		<content:encoded><![CDATA[<p>Hi. Those tutorials are really great and helpful. This Interactivity is working fine for me when i use Your Plane Objects, however its now working with other objects like DAE objects at all :&lt; dunno exacly why. i set viewport.interactive = true and i used<br />
var bitmapMaterial : BitmapMaterial = new BitmapMaterial(bm.bitmapData);<br />
bitmapMaterial.interactive = true;<br />
I think this material is still not interactive, i tried diffrent materials not only bitmaps and i found only way to set them interactive like above but this seem not working properly. Any ideas ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ZoRNdYuKe</title>
		<link>http://papervision2.com/basic-interactivity/comment-page-2/#comment-14571</link>
		<dc:creator>ZoRNdYuKe</dc:creator>
		<pubDate>Thu, 28 May 2009 15:52:28 +0000</pubDate>
		<guid isPermaLink="false">http://papervision2.com/basic-interactivity/#comment-14571</guid>
		<description>On Adobe Flash CS3 / 4..  on the eventListener..  the &quot;OBJECT_PRESS, onPress&quot; , the onPress is highlighted.. so I changed it to  &quot;onPresx&quot;  and the function to &quot; private function onPresx(e.Inter...&quot; , .. so I don&#039;t get the Migration error...

Hope that helped out ;) .. and after 2 hours I finished to make my Plane Interactive xD.. ( Hey! It&#039;s my first time that I work with Classes.. I never liked classes.. in PHP I don&#039;t use them.. but that are very nice.. I would use them.. no I MUST use them to become better.. and more secure.. )

- ZoRNdYuKe</description>
		<content:encoded><![CDATA[<p>On Adobe Flash CS3 / 4..  on the eventListener..  the &#8220;OBJECT_PRESS, onPress&#8221; , the onPress is highlighted.. so I changed it to  &#8220;onPresx&#8221;  and the function to &#8221; private function onPresx(e.Inter&#8230;&#8221; , .. so I don&#8217;t get the Migration error&#8230;</p>
<p>Hope that helped out ;) .. and after 2 hours I finished to make my Plane Interactive xD.. ( Hey! It&#8217;s my first time that I work with Classes.. I never liked classes.. in PHP I don&#8217;t use them.. but that are very nice.. I would use them.. no I MUST use them to become better.. and more secure.. )</p>
<p>- ZoRNdYuKe</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kikolin</title>
		<link>http://papervision2.com/basic-interactivity/comment-page-2/#comment-13449</link>
		<dc:creator>Kikolin</dc:creator>
		<pubDate>Wed, 06 May 2009 10:57:47 +0000</pubDate>
		<guid isPermaLink="false">http://papervision2.com/basic-interactivity/#comment-13449</guid>
		<description>Thanks jolin, but it still doesn´t work for me... I have added the viewport.interactive lines and animation keeps showing the same behaviour...

:-S</description>
		<content:encoded><![CDATA[<p>Thanks jolin, but it still doesn´t work for me&#8230; I have added the viewport.interactive lines and animation keeps showing the same behaviour&#8230;</p>
<p>:-S</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jolin</title>
		<link>http://papervision2.com/basic-interactivity/comment-page-2/#comment-13335</link>
		<dc:creator>jolin</dc:creator>
		<pubDate>Mon, 04 May 2009 12:52:20 +0000</pubDate>
		<guid isPermaLink="false">http://papervision2.com/basic-interactivity/#comment-13335</guid>
		<description>Hi!

to fix it, set viewport.interactive = true; in the init function.

Then in your MouseEvent funtion also set viewport.interactive = true;

That should work!

cheerz,
j</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>to fix it, set viewport.interactive = true; in the init function.</p>
<p>Then in your MouseEvent funtion also set viewport.interactive = true;</p>
<p>That should work!</p>
<p>cheerz,<br />
j</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kikolin</title>
		<link>http://papervision2.com/basic-interactivity/comment-page-2/#comment-13105</link>
		<dc:creator>Kikolin</dc:creator>
		<pubDate>Thu, 30 Apr 2009 10:03:23 +0000</pubDate>
		<guid isPermaLink="false">http://papervision2.com/basic-interactivity/#comment-13105</guid>
		<description>Hi! Very good and useful tutorial.
By the way I have same problem as boulet. I have copied the tutorial word by word and it works, but if I don&#039;t move mouse pointer InteractiveScene3DEvent.OBJECT_OVER is not fired. In flash movie  you included heading the tutorial it works... Is it a version issue related with &quot;Great White&quot; code chnages?
Is there a fix?

Thank you very much!</description>
		<content:encoded><![CDATA[<p>Hi! Very good and useful tutorial.<br />
By the way I have same problem as boulet. I have copied the tutorial word by word and it works, but if I don&#8217;t move mouse pointer InteractiveScene3DEvent.OBJECT_OVER is not fired. In flash movie  you included heading the tutorial it works&#8230; Is it a version issue related with &#8220;Great White&#8221; code chnages?<br />
Is there a fix?</p>
<p>Thank you very much!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
