<?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: Adding XML to the Papervision Coverflow</title>
	<atom:link href="http://papervision2.com/adding-xml-to-the-papervision-coverflow/feed/" rel="self" type="application/rss+xml" />
	<link>http://papervision2.com/adding-xml-to-the-papervision-coverflow/</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: Steven</title>
		<link>http://papervision2.com/adding-xml-to-the-papervision-coverflow/comment-page-1/#comment-53346</link>
		<dc:creator>Steven</dc:creator>
		<pubDate>Thu, 13 May 2010 15:24:08 +0000</pubDate>
		<guid isPermaLink="false">http://papervision2.com/?p=420#comment-53346</guid>
		<description>**EDIT

Oops it cut out the nodes for the xml.. within each image just add a new child of imageTitle and then add the title inside of that :)</description>
		<content:encoded><![CDATA[<p>**EDIT</p>
<p>Oops it cut out the nodes for the xml.. within each image just add a new child of imageTitle and then add the title inside of that :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven</title>
		<link>http://papervision2.com/adding-xml-to-the-papervision-coverflow/comment-page-1/#comment-53344</link>
		<dc:creator>Steven</dc:creator>
		<pubDate>Thu, 13 May 2010 15:21:33 +0000</pubDate>
		<guid isPermaLink="false">http://papervision2.com/?p=420#comment-53344</guid>
		<description>@Johan

Ive not used bulkloader myself but it should be pretty straight forward to get it working.

Your XML image nodes should look like this :-


     
          &quot;IMAGE URL HERE&quot;
          &quot;Title Here&quot;
     


Then you make a dynamic textfield on the stage and give it an instance name for example &quot;title_txt&quot;

Then in buttonClick function just after the first switch and case add a line something like this :- title_txt.text = xmlList[currentItem].imageTitle;

Im not the best at AS3, still pretty new to it myself so it might not be the best way, might not even work for you. but i hope that gets you on the right tracks</description>
		<content:encoded><![CDATA[<p>@Johan</p>
<p>Ive not used bulkloader myself but it should be pretty straight forward to get it working.</p>
<p>Your XML image nodes should look like this :-</p>
<p>          &#8220;IMAGE URL HERE&#8221;<br />
          &#8220;Title Here&#8221;</p>
<p>Then you make a dynamic textfield on the stage and give it an instance name for example &#8220;title_txt&#8221;</p>
<p>Then in buttonClick function just after the first switch and case add a line something like this :- title_txt.text = xmlList[currentItem].imageTitle;</p>
<p>Im not the best at AS3, still pretty new to it myself so it might not be the best way, might not even work for you. but i hope that gets you on the right tracks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Elisha</title>
		<link>http://papervision2.com/adding-xml-to-the-papervision-coverflow/comment-page-1/#comment-45102</link>
		<dc:creator>Elisha</dc:creator>
		<pubDate>Wed, 21 Apr 2010 01:53:42 +0000</pubDate>
		<guid isPermaLink="false">http://papervision2.com/?p=420#comment-45102</guid>
		<description>could you teach me how to create a buttton(such as&quot;BACK TO INDEX&quot;or &quot;NEXT PAGE&quot;) in the pv3D scene?</description>
		<content:encoded><![CDATA[<p>could you teach me how to create a buttton(such as&#8221;BACK TO INDEX&#8221;or &#8220;NEXT PAGE&#8221;) in the pv3D scene?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johan</title>
		<link>http://papervision2.com/adding-xml-to-the-papervision-coverflow/comment-page-1/#comment-42996</link>
		<dc:creator>Johan</dc:creator>
		<pubDate>Tue, 13 Apr 2010 13:05:00 +0000</pubDate>
		<guid isPermaLink="false">http://papervision2.com/?p=420#comment-42996</guid>
		<description>Hey Charlie. First off. I absolutely love your work. Quick and easy to get an overview of, even for a relative newb as me. I’m having a bit of a problem though. It’s most likely a straight forward fix, but if I wanted to add a textfield to the Coverflow somewhere on the stage, and then have the titles for the individual pictures show up in said textfield, how would I go about doing that? Both how the content of the .xml file should look, and how I should retrieve it using bulkLoader. I’m not at all familiar with bulkloader, and I don’t know if that’s the thing that has got me stumped.
I really hope you can help me.</description>
		<content:encoded><![CDATA[<p>Hey Charlie. First off. I absolutely love your work. Quick and easy to get an overview of, even for a relative newb as me. I’m having a bit of a problem though. It’s most likely a straight forward fix, but if I wanted to add a textfield to the Coverflow somewhere on the stage, and then have the titles for the individual pictures show up in said textfield, how would I go about doing that? Both how the content of the .xml file should look, and how I should retrieve it using bulkLoader. I’m not at all familiar with bulkloader, and I don’t know if that’s the thing that has got me stumped.<br />
I really hope you can help me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johan</title>
		<link>http://papervision2.com/adding-xml-to-the-papervision-coverflow/comment-page-1/#comment-42991</link>
		<dc:creator>Johan</dc:creator>
		<pubDate>Tue, 13 Apr 2010 11:52:20 +0000</pubDate>
		<guid isPermaLink="false">http://papervision2.com/?p=420#comment-42991</guid>
		<description>Hey Charlie. First off. I absolutely love your work. Quick and esay to get an overview of, even for a relative newb as me. I&#039;m having a bit of a problem though. It&#039;s most likely a straight forward fix, but if I wanted to add a textfield to the Coverflow somewhere on the stage, and then have the titles for the individual pictures show up in said textfield, how would I go about doing that? Both how the content of the .xml file should look, and how I should retrive it using bulkLoader. I&#039;m not at all familiar with bulkloader, and I don&#039;t know if that&#039;s the thing that has got me stumped.
I really hope you can help me.</description>
		<content:encoded><![CDATA[<p>Hey Charlie. First off. I absolutely love your work. Quick and esay to get an overview of, even for a relative newb as me. I&#8217;m having a bit of a problem though. It&#8217;s most likely a straight forward fix, but if I wanted to add a textfield to the Coverflow somewhere on the stage, and then have the titles for the individual pictures show up in said textfield, how would I go about doing that? Both how the content of the .xml file should look, and how I should retrive it using bulkLoader. I&#8217;m not at all familiar with bulkloader, and I don&#8217;t know if that&#8217;s the thing that has got me stumped.<br />
I really hope you can help me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://papervision2.com/adding-xml-to-the-papervision-coverflow/comment-page-1/#comment-29506</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Mon, 25 Jan 2010 18:18:20 +0000</pubDate>
		<guid isPermaLink="false">http://papervision2.com/?p=420#comment-29506</guid>
		<description>I&#039;m pretty new to this, so I was wondering if its possible to add a link from each photo inside of the XML?</description>
		<content:encoded><![CDATA[<p>I&#8217;m pretty new to this, so I was wondering if its possible to add a link from each photo inside of the XML?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charlie</title>
		<link>http://papervision2.com/adding-xml-to-the-papervision-coverflow/comment-page-1/#comment-28985</link>
		<dc:creator>Charlie</dc:creator>
		<pubDate>Sat, 09 Jan 2010 05:46:16 +0000</pubDate>
		<guid isPermaLink="false">http://papervision2.com/?p=420#comment-28985</guid>
		<description>Hey Chuck,

Sorry for the late reply. I am not sure if you got this coverflow fully working in Flex yet. Here is an example of this class working with Flex. 
http://pastebin.com/f6566f277

Charlie</description>
		<content:encoded><![CDATA[<p>Hey Chuck,</p>
<p>Sorry for the late reply. I am not sure if you got this coverflow fully working in Flex yet. Here is an example of this class working with Flex.<br />
<a href="http://pastebin.com/f6566f277" rel="nofollow">http://pastebin.com/f6566f277</a></p>
<p>Charlie</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: chuck</title>
		<link>http://papervision2.com/adding-xml-to-the-papervision-coverflow/comment-page-1/#comment-28653</link>
		<dc:creator>chuck</dc:creator>
		<pubDate>Mon, 04 Jan 2010 08:20:25 +0000</pubDate>
		<guid isPermaLink="false">http://papervision2.com/?p=420#comment-28653</guid>
		<description>Cool Component! Thanks.  I tried to add it into a Flex project and it almost worked.  It hung up sometime after loading the iphone picture.  Thanks for any tips!




	&lt;![CDATA[
	import mx.core.UIComponent;
	import flash.display.Sprite;
	import flash.events.MouseEvent;
	import flash.filters.GlowFilter;
	import gs.easing.Quint;
	import gs.TweenLite;
	import org.papervision3d.events.InteractiveScene3DEvent;
	import org.papervision3d.materials.BitmapFileMaterial;
	import org.papervision3d.objects.DisplayObject3D;
	import org.papervision3d.objects.primitives.Plane;
	import org.papervision3d.view.BasicView;
	import org.papervision3d.cameras.CameraType;
	import org.papervision3d.render.BasicRenderEngine;
	
	/**
	 * ...
	 * @author Charlie Schulze, charlie[at]woveninteractive[dot]com
	 * Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
	 */
		protected var planes:Array = [];
		protected var numItems:Number = 7;
		protected var currentItem:Number = 3;
		protected var angle:Number = 25;		
		protected var mat:BitmapFileMaterial;
		protected var view:BasicView;
		
		public function init():void 
		{
			//Make sure that your scene is set to interactive
			view = new BasicView(640, 480, true, true, CameraType.TARGET);
			view.renderer = new BasicRenderEngine();
	
			// these 3 lines are key to putting Papervision in Flex
			var uicomp:UIComponent = new UIComponent();
			GallerycanvasPv3D.addChild( uicomp );
			uicomp.addChild( view );
			
			Main();
		}
		protected function Main():void 
		{
			makeChildren();
			//createNavigation();
			animate();
			view.singleRender();
		}
		protected function makeChildren():void 
		{
			//Create Material
			mat 			= new BitmapFileMaterial(&quot;images/iPhone-back2.png&quot;);
			mat.smooth 		= true;
			mat.interactive = true;
			for (var i:int = 0; i &lt; numItems; i++) 
			{
				var plane:Plane = new Plane(mat, 177, 334, 4, 4);
				planes.push(plane);
				
				//Click straight to any plane
				plane.addEventListener(InteractiveScene3DEvent.OBJECT_PRESS, onPlaneClick);
				
				//Set an id to target current item
				plane.id = i;
				
				//Add plane to the scene
				view.scene.addChild(plane);
			}
			
			//cam.zoom = 60;
		}
		
		protected function onPlaneClick(evt:InteractiveScene3DEvent):void 
		{
			currentItem = evt.target.id;
			animate();
		}
		
		//Animate the coverflow left / right based off of currentItems
		protected function animate():void 
		{
			for (var i:int = 0; i  currentItem)  
				{
					planeX 				= (i - currentItem + 1) * 120;
					planeRotationY 		= angle + 10 * (i - currentItem);
					
					TweenLite.to(plane, 1, { rotationY:planeRotationY,x:planeX,z:planeZ, ease:Quint.easeInOut } );
				}
				
				//Place &amp; Animate Left Items
				if (i &lt; currentItem) 
				{
					planeX 				= (currentItem - i + 1) * -120;
					planeRotationY 		= -angle - 10 * (currentItem - i);
					
					TweenLite.to(plane, 1, { rotationY:planeRotationY,x:planeX,z:planeZ, ease:Quint.easeInOut } );
				}
			}
		}
		
		/*
		 * Everything below this point is just for creating the buttons and
		 * setting button events for controlling the coverflow. 
		 */
		
		//Button actions
		protected function buttonClick(evt:MouseEvent):void 
		{
			switch (evt.target)
			{
				case rightBtn:
				currentItem ++
				break;
				
				case leftBtn:
				currentItem --;
				break;
			}
			
			//Don&#039;t allow any number lower than 0 or past max so there
			//is always a center item
			
			if (currentItem  (planes.length - 1))
			{
				currentItem = planes.length - 1;
			}
			
			//Call animation
			animate();
		}
	]]&gt;

	&lt;!-- create a canvas that papervision will use --&gt;
	
		
		
		
</description>
		<content:encoded><![CDATA[<p>Cool Component! Thanks.  I tried to add it into a Flex project and it almost worked.  It hung up sometime after loading the iphone picture.  Thanks for any tips!</p>
<p>	&lt;![CDATA[<br />
	import mx.core.UIComponent;<br />
	import flash.display.Sprite;<br />
	import flash.events.MouseEvent;<br />
	import flash.filters.GlowFilter;<br />
	import gs.easing.Quint;<br />
	import gs.TweenLite;<br />
	import org.papervision3d.events.InteractiveScene3DEvent;<br />
	import org.papervision3d.materials.BitmapFileMaterial;<br />
	import org.papervision3d.objects.DisplayObject3D;<br />
	import org.papervision3d.objects.primitives.Plane;<br />
	import org.papervision3d.view.BasicView;<br />
	import org.papervision3d.cameras.CameraType;<br />
	import org.papervision3d.render.BasicRenderEngine;</p>
<p>	/**<br />
	 * ...<br />
	 * @author Charlie Schulze, charlie[at]woveninteractive[dot]com<br />
	 * Licensed under the MIT license: <a href="http://www.opensource.org/licenses/mit-license.php" rel="nofollow">http://www.opensource.org/licenses/mit-license.php</a><br />
	 */<br />
		protected var planes:Array = [];<br />
		protected var numItems:Number = 7;<br />
		protected var currentItem:Number = 3;<br />
		protected var angle:Number = 25;<br />
		protected var mat:BitmapFileMaterial;<br />
		protected var view:BasicView;</p>
<p>		public function init():void<br />
		{<br />
			//Make sure that your scene is set to interactive<br />
			view = new BasicView(640, 480, true, true, CameraType.TARGET);<br />
			view.renderer = new BasicRenderEngine();</p>
<p>			// these 3 lines are key to putting Papervision in Flex<br />
			var uicomp:UIComponent = new UIComponent();<br />
			GallerycanvasPv3D.addChild( uicomp );<br />
			uicomp.addChild( view );</p>
<p>			Main();<br />
		}<br />
		protected function Main():void<br />
		{<br />
			makeChildren();<br />
			//createNavigation();<br />
			animate();<br />
			view.singleRender();<br />
		}<br />
		protected function makeChildren():void<br />
		{<br />
			//Create Material<br />
			mat 			= new BitmapFileMaterial(&quot;images/iPhone-back2.png&quot;);<br />
			mat.smooth 		= true;<br />
			mat.interactive = true;<br />
			for (var i:int = 0; i &lt; numItems; i++)<br />
			{<br />
				var plane:Plane = new Plane(mat, 177, 334, 4, 4);<br />
				planes.push(plane);</p>
<p>				//Click straight to any plane<br />
				plane.addEventListener(InteractiveScene3DEvent.OBJECT_PRESS, onPlaneClick);</p>
<p>				//Set an id to target current item<br />
				plane.id = i;</p>
<p>				//Add plane to the scene<br />
				view.scene.addChild(plane);<br />
			}</p>
<p>			//cam.zoom = 60;<br />
		}</p>
<p>		protected function onPlaneClick(evt:InteractiveScene3DEvent):void<br />
		{<br />
			currentItem = evt.target.id;<br />
			animate();<br />
		}</p>
<p>		//Animate the coverflow left / right based off of currentItems<br />
		protected function animate():void<br />
		{<br />
			for (var i:int = 0; i  currentItem)<br />
				{<br />
					planeX 				= (i &#8211; currentItem + 1) * 120;<br />
					planeRotationY 		= angle + 10 * (i &#8211; currentItem);</p>
<p>					TweenLite.to(plane, 1, { rotationY:planeRotationY,x:planeX,z:planeZ, ease:Quint.easeInOut } );<br />
				}</p>
<p>				//Place &amp; Animate Left Items<br />
				if (i &lt; currentItem)<br />
				{<br />
					planeX 				= (currentItem &#8211; i + 1) * -120;<br />
					planeRotationY 		= -angle &#8211; 10 * (currentItem &#8211; i);</p>
<p>					TweenLite.to(plane, 1, { rotationY:planeRotationY,x:planeX,z:planeZ, ease:Quint.easeInOut } );<br />
				}<br />
			}<br />
		}</p>
<p>		/*<br />
		 * Everything below this point is just for creating the buttons and<br />
		 * setting button events for controlling the coverflow.<br />
		 */</p>
<p>		//Button actions<br />
		protected function buttonClick(evt:MouseEvent):void<br />
		{<br />
			switch (evt.target)<br />
			{<br />
				case rightBtn:<br />
				currentItem ++<br />
				break;</p>
<p>				case leftBtn:<br />
				currentItem &#8211;;<br />
				break;<br />
			}</p>
<p>			//Don&#039;t allow any number lower than 0 or past max so there<br />
			//is always a center item</p>
<p>			if (currentItem  (planes.length &#8211; 1))<br />
			{<br />
				currentItem = planes.length &#8211; 1;<br />
			}</p>
<p>			//Call animation<br />
			animate();<br />
		}<br />
	]]&gt;</p>
<p>	<!-- create a canvas that papervision will use --></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charlie</title>
		<link>http://papervision2.com/adding-xml-to-the-papervision-coverflow/comment-page-1/#comment-27867</link>
		<dc:creator>Charlie</dc:creator>
		<pubDate>Tue, 29 Dec 2009 13:10:38 +0000</pubDate>
		<guid isPermaLink="false">http://papervision2.com/?p=420#comment-27867</guid>
		<description>When you&#039;re applying these types of events to a Plane object you need to use InteractiveScene3DEvent. You can apply MouseEvents to MovieClips and Sprites which are sometimes used with materials of Planes.</description>
		<content:encoded><![CDATA[<p>When you&#8217;re applying these types of events to a Plane object you need to use InteractiveScene3DEvent. You can apply MouseEvents to MovieClips and Sprites which are sometimes used with materials of Planes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nate</title>
		<link>http://papervision2.com/adding-xml-to-the-papervision-coverflow/comment-page-1/#comment-27850</link>
		<dc:creator>Nate</dc:creator>
		<pubDate>Tue, 29 Dec 2009 08:00:26 +0000</pubDate>
		<guid isPermaLink="false">http://papervision2.com/?p=420#comment-27850</guid>
		<description>Why do you use &quot;InteractiveScene3DEvent&quot; for a plane instead of a MouseEvent?

Nate</description>
		<content:encoded><![CDATA[<p>Why do you use &#8220;InteractiveScene3DEvent&#8221; for a plane instead of a MouseEvent?</p>
<p>Nate</p>
]]></content:encoded>
	</item>
</channel>
</rss>
