<?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 for Tweetpond</title>
	<atom:link href="http://www.tweetpond.com/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tweetpond.com</link>
	<description>Ambient visualisation of Twitter</description>
	<lastBuildDate>Wed, 17 Nov 2010 13:37:14 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>Comment on Billboarding in Papervision3D 2.0 using DisplayObject2D by Wayne</title>
		<link>http://www.tweetpond.com/blog/billboarding-in-papervision3d-20-displayobject2d/comment-page-1/#comment-1647</link>
		<dc:creator>Wayne</dc:creator>
		<pubDate>Wed, 17 Nov 2010 13:37:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.tweetpond.com/?p=121#comment-1647</guid>
		<description>thanks, I use the monster debugger, they are good lads. For anybody else I think I found a solution however am not sure if it is the most effecient but it works! I put the movie clip into an array instead of the 2dobject and deleted that. It just would not delete the 3d object in the scene, but im happy for now!
&lt;code&gt;
box = new menuHolder();
// create do2d that encapsulates the movieclip
menu = new DisplayObject2D(box as DisplayObject,parentLayer,0,null,5 * 1.25,0);
menuArray.push(box);

//then deleted it by
var item = menuArray[i];
item.parent.removeChild(item);
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>thanks, I use the monster debugger, they are good lads. For anybody else I think I found a solution however am not sure if it is the most effecient but it works! I put the movie clip into an array instead of the 2dobject and deleted that. It just would not delete the 3d object in the scene, but im happy for now!<br />
<code><br />
box = new menuHolder();<br />
// create do2d that encapsulates the movieclip<br />
menu = new DisplayObject2D(box as DisplayObject,parentLayer,0,null,5 * 1.25,0);<br />
menuArray.push(box);</p>
<p>//then deleted it by<br />
var item = menuArray[i];<br />
item.parent.removeChild(item);<br />
</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Billboarding in Papervision3D 2.0 using DisplayObject2D by Jussi</title>
		<link>http://www.tweetpond.com/blog/billboarding-in-papervision3d-20-displayobject2d/comment-page-1/#comment-1639</link>
		<dc:creator>Jussi</dc:creator>
		<pubDate>Wed, 17 Nov 2010 01:02:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.tweetpond.com/?p=121#comment-1639</guid>
		<description>Hi Wayne, the code seems right at a quick glance but unfortunately I can&#039;t look into it in more detail.

Have you tried looking at your running project using a debugger? Tools like &lt;a href=&quot;http://demonsterdebugger.com/&quot; rel=&quot;nofollow&quot;&gt;De MonsterDebugger&lt;/a&gt; really help work out where the issues lie.</description>
		<content:encoded><![CDATA[<p>Hi Wayne, the code seems right at a quick glance but unfortunately I can&#8217;t look into it in more detail.</p>
<p>Have you tried looking at your running project using a debugger? Tools like <a href="http://demonsterdebugger.com/" rel="nofollow">De MonsterDebugger</a> really help work out where the issues lie.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Billboarding in Papervision3D 2.0 using DisplayObject2D by wayne</title>
		<link>http://www.tweetpond.com/blog/billboarding-in-papervision3d-20-displayobject2d/comment-page-1/#comment-1638</link>
		<dc:creator>wayne</dc:creator>
		<pubDate>Wed, 17 Nov 2010 00:24:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.tweetpond.com/?p=121#comment-1638</guid>
		<description>thanks jussi, Thanks for the response,  I think im missing something here. I think im adding each menu to the array then deleting all items in one go, but it does not delete any. It does however add to 2 new 2d objects(which is correct); is it to do with how i am adding them, im not sure if this is the correct way but seems to work?? Sorry to keep bothering you.
&lt;pre&gt;
public function addBtns():void
{
	max = tempArray.length;
	var parentLayer:ViewportLayer;
	var vpl:ViewportLayer;
	// create an empty parent viewport layer and add it to the container
	parentLayer = new ViewportLayer(viewport,null);
	viewport.containerSprite.addLayer(parentLayer);
	// adding individual 2d oobjects with different x and y etc
	for (var i:int = 0; i &lt; max; i++)
	{
		box = new menuHolder();
		// create text box (movieclip);
		// create do2d that encapsulates the movieclip
		menu = new DisplayObject2D(box as DisplayObject,parentLayer,0,null,5 * 1.25,0);
		// create layer and add to scene
		menu.useOwnContainer = true;
		//vpl = parentLayer.getChildLayer(menu,true);

		menu.x = tempArray[i].x;
		menu.y = tempArray[i].y;
		menu.z = tempArray[i].z;
		// drop down stuff
		var bodyDrop:DropDown = new DropDown(this[listArray + i],tempArray[i].title,true,this[listArray + i].length * 30);
		bodyDrop.addEventListener(DropDown.ITEM_SELECTED, newSelect);


		box.addChild(bodyDrop);
		box.name = &quot;box&quot; + i;
		menu.name = &quot;menu&quot; + i;
		menuArray.push(menu);
		scene.addChild(menu);
		//menu.alpha = 1;

		trace(menuArray[i]);
	}
	trace(&quot;starting menu&quot;,menu.scene);
}

// button to remove
public function removeHorseBtns():void
{
	for (var i:int = 0; i &lt; max; i++)
	{
		menu = menuArray[i];
		// remove from scene
		if (menu.scene)
		{
			menu.scene.removeChild(menu);
			// dispose
			menu = null;
		}

	}
	//this will be added to 
	menuArray=[];
}
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>thanks jussi, Thanks for the response,  I think im missing something here. I think im adding each menu to the array then deleting all items in one go, but it does not delete any. It does however add to 2 new 2d objects(which is correct); is it to do with how i am adding them, im not sure if this is the correct way but seems to work?? Sorry to keep bothering you.</p>
<pre>
public function addBtns():void
{
	max = tempArray.length;
	var parentLayer:ViewportLayer;
	var vpl:ViewportLayer;
	// create an empty parent viewport layer and add it to the container
	parentLayer = new ViewportLayer(viewport,null);
	viewport.containerSprite.addLayer(parentLayer);
	// adding individual 2d oobjects with different x and y etc
	for (var i:int = 0; i &lt; max; i++)
	{
		box = new menuHolder();
		// create text box (movieclip);
		// create do2d that encapsulates the movieclip
		menu = new DisplayObject2D(box as DisplayObject,parentLayer,0,null,5 * 1.25,0);
		// create layer and add to scene
		menu.useOwnContainer = true;
		//vpl = parentLayer.getChildLayer(menu,true);

		menu.x = tempArray[i].x;
		menu.y = tempArray[i].y;
		menu.z = tempArray[i].z;
		// drop down stuff
		var bodyDrop:DropDown = new DropDown(this[listArray + i],tempArray[i].title,true,this[listArray + i].length * 30);
		bodyDrop.addEventListener(DropDown.ITEM_SELECTED, newSelect);

		box.addChild(bodyDrop);
		box.name = &quot;box&quot; + i;
		menu.name = &quot;menu&quot; + i;
		menuArray.push(menu);
		scene.addChild(menu);
		//menu.alpha = 1;

		trace(menuArray[i]);
	}
	trace(&quot;starting menu&quot;,menu.scene);
}

// button to remove
public function removeHorseBtns():void
{
	for (var i:int = 0; i &lt; max; i++)
	{
		menu = menuArray[i];
		// remove from scene
		if (menu.scene)
		{
			menu.scene.removeChild(menu);
			// dispose
			menu = null;
		}

	}
	//this will be added to
	menuArray=[];
}
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Billboarding in Papervision3D 2.0 using DisplayObject2D by Jussi</title>
		<link>http://www.tweetpond.com/blog/billboarding-in-papervision3d-20-displayobject2d/comment-page-1/#comment-1632</link>
		<dc:creator>Jussi</dc:creator>
		<pubDate>Mon, 15 Nov 2010 23:44:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.tweetpond.com/?p=121#comment-1632</guid>
		<description>Hi Wayne,

here&#039;s how the removing of objects is done in Tweetpond:

&lt;pre&gt;
// remove from array
shape = shapeArray.pop();

// remove from scene
if (shape.scene) shape.scene.removeChild(shape);
	
// dispose
shape = null;
&lt;/pre&gt;

Hope this helps.</description>
		<content:encoded><![CDATA[<p>Hi Wayne,</p>
<p>here&#8217;s how the removing of objects is done in Tweetpond:</p>
<pre>
// remove from array
shape = shapeArray.pop();

// remove from scene
if (shape.scene) shape.scene.removeChild(shape);

// dispose
shape = null;
</pre>
<p>Hope this helps.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Billboarding in Papervision3D 2.0 using DisplayObject2D by Wayne</title>
		<link>http://www.tweetpond.com/blog/billboarding-in-papervision3d-20-displayobject2d/comment-page-1/#comment-1630</link>
		<dc:creator>Wayne</dc:creator>
		<pubDate>Mon, 15 Nov 2010 15:13:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.tweetpond.com/?p=121#comment-1630</guid>
		<description>Hi again, I have hit another stumbling block and wondered if theire was a simple solution, im probably being silly, I am trying to remove the display2d object. I have added 5 menu&#039;s using your class, each as a seperate 2dobject and put each one ino an array, I can trace the object in the array but will not remove it? Could it be something like viewport.containerSprite.parent.removeChild(menu);?

Thanks again, this class is very handy.</description>
		<content:encoded><![CDATA[<p>Hi again, I have hit another stumbling block and wondered if theire was a simple solution, im probably being silly, I am trying to remove the display2d object. I have added 5 menu&#8217;s using your class, each as a seperate 2dobject and put each one ino an array, I can trace the object in the array but will not remove it? Could it be something like viewport.containerSprite.parent.removeChild(menu);?</p>
<p>Thanks again, this class is very handy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Billboarding in Papervision3D 2.0 using DisplayObject2D by Jussi</title>
		<link>http://www.tweetpond.com/blog/billboarding-in-papervision3d-20-displayobject2d/comment-page-1/#comment-1438</link>
		<dc:creator>Jussi</dc:creator>
		<pubDate>Mon, 25 Oct 2010 23:56:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.tweetpond.com/?p=121#comment-1438</guid>
		<description>Sounds good, I&#039;m glad you got it working. Cheers</description>
		<content:encoded><![CDATA[<p>Sounds good, I&#8217;m glad you got it working. Cheers</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Billboarding in Papervision3D 2.0 using DisplayObject2D by Wayne</title>
		<link>http://www.tweetpond.com/blog/billboarding-in-papervision3d-20-displayobject2d/comment-page-1/#comment-1434</link>
		<dc:creator>Wayne</dc:creator>
		<pubDate>Mon, 25 Oct 2010 09:52:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.tweetpond.com/?p=121#comment-1434</guid>
		<description>Hi again, forget that, I have used normal mouse events on the box movieclip which seems to work now instead of the 2d display object. lol</description>
		<content:encoded><![CDATA[<p>Hi again, forget that, I have used normal mouse events on the box movieclip which seems to work now instead of the 2d display object. lol</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Billboarding in Papervision3D 2.0 using DisplayObject2D by Wayne</title>
		<link>http://www.tweetpond.com/blog/billboarding-in-papervision3d-20-displayobject2d/comment-page-1/#comment-1432</link>
		<dc:creator>Wayne</dc:creator>
		<pubDate>Mon, 25 Oct 2010 08:13:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.tweetpond.com/?p=121#comment-1432</guid>
		<description>Hi Jussi
Thanks for your speed response. Would this still apply to making the 2d object clickable. I have loaded in a movieclip in to the 2d object. Rollovers work but cant get any joy from tracing a click? I have also tried a normal mouse event. At the moment I have

var parentLayer:ViewportLayer;
var vpl:ViewportLayer;
 
parentLayer = new ViewportLayer(viewport, null);
viewport.containerSprite.addLayer(parentLayer);			
// create text box (movieclip)
var box = new MenuCrossBtn();
var menu = new DisplayObject2D(box as DisplayObject, parentLayer, 0, null, 5*1.25, 0);
 // create layer and add to scene
menu.useOwnContainer = true;
vpl = parentLayer.getChildLayer(menu, true);
menu.z=200;
menu.addEventListener(InteractiveScene3DEvent.OBJECT_CLICK, click1);
menu.name=&quot;myBtn&quot;;
scene.addChild(menu);</description>
		<content:encoded><![CDATA[<p>Hi Jussi<br />
Thanks for your speed response. Would this still apply to making the 2d object clickable. I have loaded in a movieclip in to the 2d object. Rollovers work but cant get any joy from tracing a click? I have also tried a normal mouse event. At the moment I have</p>
<p>var parentLayer:ViewportLayer;<br />
var vpl:ViewportLayer;</p>
<p>parentLayer = new ViewportLayer(viewport, null);<br />
viewport.containerSprite.addLayer(parentLayer);<br />
// create text box (movieclip)<br />
var box = new MenuCrossBtn();<br />
var menu = new DisplayObject2D(box as DisplayObject, parentLayer, 0, null, 5*1.25, 0);<br />
 // create layer and add to scene<br />
menu.useOwnContainer = true;<br />
vpl = parentLayer.getChildLayer(menu, true);<br />
menu.z=200;<br />
menu.addEventListener(InteractiveScene3DEvent.OBJECT_CLICK, click1);<br />
menu.name=&#8221;myBtn&#8221;;<br />
scene.addChild(menu);</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Billboarding in Papervision3D 2.0 using DisplayObject2D by Jussi</title>
		<link>http://www.tweetpond.com/blog/billboarding-in-papervision3d-20-displayobject2d/comment-page-1/#comment-1422</link>
		<dc:creator>Jussi</dc:creator>
		<pubDate>Sat, 23 Oct 2010 01:12:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.tweetpond.com/?p=121#comment-1422</guid>
		<description>Hi Wayne,

good question, I&#039;ve tried mouse events in the past but they didn&#039;t seem to work properly. If I remember correctly the click events were received fine, however the event target wasn&#039;t always correct, so in the current version of Tweetpond clicking on objects is not enabled. I believe this is unrelated to the DisplayObject2D implementation.

I&#039;ve posted some sample code below on setting up the events, perhaps someone else can have a look and work out why this doesn&#039;t always work correctly when there are lots of objects in the scene?

Cheers, Jussi

&lt;pre&gt;
public class MyView extends BasicView {
  // constant for our interactive setting	
  public static const INTERACTIVE = true;

  public function MyView() {
    // interactive viewport allows clicking on objects
    super(stage.stageWidth, stage.stageHeight, true, INTERACTIVE, CameraType.TARGET);

    var obj:DisplayObject3D = createShape();

    // name displayobject
    obj.name = &quot;my_sphere_001&quot;;

    // add event listeners
    obj.addEventListener(InteractiveScene3DEvent.OBJECT_CLICK, objClicked);

    ...
  }

  private function createShape():DisplayObject3D {
    var material:MaterialObject3D = new FlatShadeMaterial(LIGHT, COLOUR, AMBIENT_COLOUR);
    var materialsList:MaterialsList = new MaterialsList();

    material.interactive = INTERACTIVE;
    materialsList.addMaterial(material, &quot;all&quot;);

    return new Sphere(material, SIZE);
  }

  private function objClicked(myEvent:InteractiveScene3DEvent):void {
    trace (&quot;Clicked on &quot; + myEvent.target.name);
  }
}
&lt;/pre&gt;
</description>
		<content:encoded><![CDATA[<p>Hi Wayne,</p>
<p>good question, I&#8217;ve tried mouse events in the past but they didn&#8217;t seem to work properly. If I remember correctly the click events were received fine, however the event target wasn&#8217;t always correct, so in the current version of Tweetpond clicking on objects is not enabled. I believe this is unrelated to the DisplayObject2D implementation.</p>
<p>I&#8217;ve posted some sample code below on setting up the events, perhaps someone else can have a look and work out why this doesn&#8217;t always work correctly when there are lots of objects in the scene?</p>
<p>Cheers, Jussi</p>
<pre>
public class MyView extends BasicView {
  // constant for our interactive setting
  public static const INTERACTIVE = true;

  public function MyView() {
    // interactive viewport allows clicking on objects
    super(stage.stageWidth, stage.stageHeight, true, INTERACTIVE, CameraType.TARGET);

    var obj:DisplayObject3D = createShape();

    // name displayobject
    obj.name = "my_sphere_001";

    // add event listeners
    obj.addEventListener(InteractiveScene3DEvent.OBJECT_CLICK, objClicked);

    ...
  }

  private function createShape():DisplayObject3D {
    var material:MaterialObject3D = new FlatShadeMaterial(LIGHT, COLOUR, AMBIENT_COLOUR);
    var materialsList:MaterialsList = new MaterialsList();

    material.interactive = INTERACTIVE;
    materialsList.addMaterial(material, "all");

    return new Sphere(material, SIZE);
  }

  private function objClicked(myEvent:InteractiveScene3DEvent):void {
    trace ("Clicked on " + myEvent.target.name);
  }
}
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Billboarding in Papervision3D 2.0 using DisplayObject2D by Wayne</title>
		<link>http://www.tweetpond.com/blog/billboarding-in-papervision3d-20-displayobject2d/comment-page-1/#comment-1414</link>
		<dc:creator>Wayne</dc:creator>
		<pubDate>Fri, 22 Oct 2010 17:09:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.tweetpond.com/?p=121#comment-1414</guid>
		<description>hi Jussi
Great update, easy to impliment so far however was just wondering if it allowed for mouse events. I have tried both mouse events and e:InteractiveScene3DEvent but no joy. I am a slight newbie so forgive me if i have overlooked something simple.

Thanks
w</description>
		<content:encoded><![CDATA[<p>hi Jussi<br />
Great update, easy to impliment so far however was just wondering if it allowed for mouse events. I have tried both mouse events and e:InteractiveScene3DEvent but no joy. I am a slight newbie so forgive me if i have overlooked something simple.</p>
<p>Thanks<br />
w</p>
]]></content:encoded>
	</item>
</channel>
</rss>

