<?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: Accordion Meets XML</title>
	<atom:link href="http://blowingthroughlines.com/2008/01/27/cs3/accordion-meets-xml/feed/" rel="self" type="application/rss+xml" />
	<link>http://blowingthroughlines.com/2008/01/27/cs3/accordion-meets-xml/</link>
	<description>Highly addictive code.</description>
	<lastBuildDate>Fri, 23 Jul 2010 12:28:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Michael Benin</title>
		<link>http://blowingthroughlines.com/2008/01/27/cs3/accordion-meets-xml/comment-page-1/#comment-7549</link>
		<dc:creator>Michael Benin</dc:creator>
		<pubDate>Sun, 28 Feb 2010 23:48:14 +0000</pubDate>
		<guid isPermaLink="false">http://blowingthroughlines.com/2008/01/27/flash-as3/accordion-meets-xml/#comment-7549</guid>
		<description>Thanks a bunch. Really a great help. Keep up the good work.</description>
		<content:encoded><![CDATA[<p>Thanks a bunch. Really a great help. Keep up the good work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neil</title>
		<link>http://blowingthroughlines.com/2008/01/27/cs3/accordion-meets-xml/comment-page-1/#comment-3360</link>
		<dc:creator>Neil</dc:creator>
		<pubDate>Mon, 18 Aug 2008 15:45:16 +0000</pubDate>
		<guid isPermaLink="false">http://blowingthroughlines.com/2008/01/27/flash-as3/accordion-meets-xml/#comment-3360</guid>
		<description>Really like using xml but having issues adding a swf into the xml. file. By the looks of it this is what you have done in the above ezample.</description>
		<content:encoded><![CDATA[<p>Really like using xml but having issues adding a swf into the xml. file. By the looks of it this is what you have done in the above ezample.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeffdurand</title>
		<link>http://blowingthroughlines.com/2008/01/27/cs3/accordion-meets-xml/comment-page-1/#comment-75</link>
		<dc:creator>jeffdurand</dc:creator>
		<pubDate>Sat, 09 Feb 2008 22:56:59 +0000</pubDate>
		<guid isPermaLink="false">http://blowingthroughlines.com/2008/01/27/flash-as3/accordion-meets-xml/#comment-75</guid>
		<description>Wow christopher that is fucking tight man.  I&#039;m really happy you were able to figure out how to get the accordion class working with flashmediaserver.  It looks really good and the streaming makes it ultra responsive.  I&#039;m going to be doing some stuff with red5 soon.  I will likely post a lot of what I did you may find it useful if you want rtmp without the high cost of fms....  later jeff</description>
		<content:encoded><![CDATA[<p>Wow christopher that is fucking tight man.  I&#8217;m really happy you were able to figure out how to get the accordion class working with flashmediaserver.  It looks really good and the streaming makes it ultra responsive.  I&#8217;m going to be doing some stuff with red5 soon.  I will likely post a lot of what I did you may find it useful if you want rtmp without the high cost of fms&#8230;.  later jeff</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christopher Keeler</title>
		<link>http://blowingthroughlines.com/2008/01/27/cs3/accordion-meets-xml/comment-page-1/#comment-76</link>
		<dc:creator>Christopher Keeler</dc:creator>
		<pubDate>Fri, 08 Feb 2008 21:13:53 +0000</pubDate>
		<guid isPermaLink="false">http://blowingthroughlines.com/2008/01/27/flash-as3/accordion-meets-xml/#comment-76</guid>
		<description>Sample of this accordion class modified to work with RTMP video streams from a Flash Media Server:

http://www.dattoli.com/flashtemp/index.cfm</description>
		<content:encoded><![CDATA[<p>Sample of this accordion class modified to work with RTMP video streams from a Flash Media Server:</p>
<p><a href="http://www.dattoli.com/flashtemp/index.cfm" rel="nofollow">http://www.dattoli.com/flashtemp/index.cfm</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jeffdurand</title>
		<link>http://blowingthroughlines.com/2008/01/27/cs3/accordion-meets-xml/comment-page-1/#comment-74</link>
		<dc:creator>jeffdurand</dc:creator>
		<pubDate>Sun, 03 Feb 2008 01:58:34 +0000</pubDate>
		<guid isPermaLink="false">http://blowingthroughlines.com/2008/01/27/flash-as3/accordion-meets-xml/#comment-74</guid>
		<description>accordian.getPanelContentsAt(panelnumber) will give you the entire contents of the panel.  Once you get the contents then you can inspect the contents for what you are looking for and call actions on it.  Hopefully this helps.  for instance you can look at the movie clip then recursively get get children till you find the correct object then simply call the method you want.</description>
		<content:encoded><![CDATA[<p>accordian.getPanelContentsAt(panelnumber) will give you the entire contents of the panel.  Once you get the contents then you can inspect the contents for what you are looking for and call actions on it.  Hopefully this helps.  for instance you can look at the movie clip then recursively get get children till you find the correct object then simply call the method you want.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christopher Keeler</title>
		<link>http://blowingthroughlines.com/2008/01/27/cs3/accordion-meets-xml/comment-page-1/#comment-73</link>
		<dc:creator>Christopher Keeler</dc:creator>
		<pubDate>Fri, 01 Feb 2008 18:12:27 +0000</pubDate>
		<guid isPermaLink="false">http://blowingthroughlines.com/2008/01/27/flash-as3/accordion-meets-xml/#comment-73</guid>
		<description>XML attributes:
vid url=&quot;DCCTech&quot; buttonText=&quot;ABOUT THIS CENTER&quot; button=&quot;pnlAbout&quot; color=&quot;0x5A7851&quot; eventMarker=&quot;28.5&quot; link=&quot;aboutUs.cfm&quot;</description>
		<content:encoded><![CDATA[<p>XML attributes:<br />
vid url=&#8221;DCCTech&#8221; buttonText=&#8221;ABOUT THIS CENTER&#8221; button=&#8221;pnlAbout&#8221; color=&#8221;0&#215;5A7851&#8243; eventMarker=&#8221;28.5&#8243; link=&#8221;aboutUs.cfm&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christopher Keeler</title>
		<link>http://blowingthroughlines.com/2008/01/27/cs3/accordion-meets-xml/comment-page-1/#comment-71</link>
		<dc:creator>Christopher Keeler</dc:creator>
		<pubDate>Fri, 01 Feb 2008 18:10:04 +0000</pubDate>
		<guid isPermaLink="false">http://blowingthroughlines.com/2008/01/27/flash-as3/accordion-meets-xml/#comment-71</guid>
		<description>Accordian Panels meet XML colors

I modified the NavPanel class to be able to colorize the gradient of each accordian panel via an XML attribute.  This also draws the panels with code, so you can customize the shape.

package
{
	import flash.display.*;
	import flash.text.TextField;
	import flash.text.TextFormat;
	import flash.text.TextFieldAutoSize;
	import flash.text.AntiAliasType;
	import flash.text.Font;
	import flash.geom.*;

	public class NavPanel extends MovieClip
	{
         private var fmt:TextFormat;

		public function NavPanel(ttle:String, pnlColor:String):void
		{
			var panelShape:Shape = new Shape();
			//panelShape.graphics.lineStyle(0);
			var matr:Matrix = new Matrix();
		    matr.createGradientBox(100, 0, 0, -60, 0);

			panelShape.graphics.beginGradientFill(&#039;linear&#039;,[0xFFFFFF,pnlColor],[1,1],[0,255],matr);
			panelShape.graphics.lineTo(0,300);
			panelShape.graphics.lineTo(20,300);
			panelShape.graphics.lineTo(20,256);
			panelShape.graphics.lineTo(30,246);
			panelShape.graphics.lineTo(20,236);
			panelShape.graphics.lineTo(20,0);
			panelShape.graphics.lineTo(0,0);
			panelShape.graphics.endFill();
			addChild(panelShape);
			//Font Embedding
            var font:Font = new Arial();
			fmt = new TextFormat();
			fmt.bold = true;
			fmt.color =&quot;0xFFFFFF&quot;;
			fmt.size = 12;
			fmt.font = font.fontName;
			var title_txt:TextField = new TextField();
			title_txt.autoSize = TextFieldAutoSize.LEFT;
            //title_txt.defaultTextFormat = this.fmt;

			title_txt.text = ttle;
			title_txt.embedFonts = true;
			title_txt.selectable = false
            title_txt.setTextFormat(fmt);
			title_txt.rotation = 90;
			title_txt.x = 19;
			title_txt.y = 5;
            addChild(title_txt);
		}
	}
}

XML:</description>
		<content:encoded><![CDATA[<p>Accordian Panels meet XML colors</p>
<p>I modified the NavPanel class to be able to colorize the gradient of each accordian panel via an XML attribute.  This also draws the panels with code, so you can customize the shape.</p>
<p>package<br />
{<br />
	import flash.display.*;<br />
	import flash.text.TextField;<br />
	import flash.text.TextFormat;<br />
	import flash.text.TextFieldAutoSize;<br />
	import flash.text.AntiAliasType;<br />
	import flash.text.Font;<br />
	import flash.geom.*;</p>
<p>	public class NavPanel extends MovieClip<br />
	{<br />
         private var fmt:TextFormat;</p>
<p>		public function NavPanel(ttle:String, pnlColor:String):void<br />
		{<br />
			var panelShape:Shape = new Shape();<br />
			//panelShape.graphics.lineStyle(0);<br />
			var matr:Matrix = new Matrix();<br />
		    matr.createGradientBox(100, 0, 0, -60, 0);</p>
<p>			panelShape.graphics.beginGradientFill(&#8216;linear&#8217;,[0xFFFFFF,pnlColor],[1,1],[0,255],matr);<br />
			panelShape.graphics.lineTo(0,300);<br />
			panelShape.graphics.lineTo(20,300);<br />
			panelShape.graphics.lineTo(20,256);<br />
			panelShape.graphics.lineTo(30,246);<br />
			panelShape.graphics.lineTo(20,236);<br />
			panelShape.graphics.lineTo(20,0);<br />
			panelShape.graphics.lineTo(0,0);<br />
			panelShape.graphics.endFill();<br />
			addChild(panelShape);<br />
			//Font Embedding<br />
            var font:Font = new Arial();<br />
			fmt = new TextFormat();<br />
			fmt.bold = true;<br />
			fmt.color =&#8221;0xFFFFFF&#8221;;<br />
			fmt.size = 12;<br />
			fmt.font = font.fontName;<br />
			var title_txt:TextField = new TextField();<br />
			title_txt.autoSize = TextFieldAutoSize.LEFT;<br />
            //title_txt.defaultTextFormat = this.fmt;</p>
<p>			title_txt.text = ttle;<br />
			title_txt.embedFonts = true;<br />
			title_txt.selectable = false<br />
            title_txt.setTextFormat(fmt);<br />
			title_txt.rotation = 90;<br />
			title_txt.x = 19;<br />
			title_txt.y = 5;<br />
            addChild(title_txt);<br />
		}<br />
	}<br />
}</p>
<p>XML:</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christopher Keeler</title>
		<link>http://blowingthroughlines.com/2008/01/27/cs3/accordion-meets-xml/comment-page-1/#comment-72</link>
		<dc:creator>Christopher Keeler</dc:creator>
		<pubDate>Thu, 31 Jan 2008 20:46:10 +0000</pubDate>
		<guid isPermaLink="false">http://blowingthroughlines.com/2008/01/27/flash-as3/accordion-meets-xml/#comment-72</guid>
		<description>Collin,

How do you access the Contents movieclips programatically?  I am trying to invoke the netStream.play() method, but there are no instance names or identifiers.

Thanks.

-CK</description>
		<content:encoded><![CDATA[<p>Collin,</p>
<p>How do you access the Contents movieclips programatically?  I am trying to invoke the netStream.play() method, but there are no instance names or identifiers.</p>
<p>Thanks.</p>
<p>-CK</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christopher Keeler</title>
		<link>http://blowingthroughlines.com/2008/01/27/cs3/accordion-meets-xml/comment-page-1/#comment-68</link>
		<dc:creator>Christopher Keeler</dc:creator>
		<pubDate>Thu, 31 Jan 2008 03:09:42 +0000</pubDate>
		<guid isPermaLink="false">http://blowingthroughlines.com/2008/01/27/flash-as3/accordion-meets-xml/#comment-68</guid>
		<description>Not sure how to implement the event with netStream, or how to load the Video object with the selectedIndex?  Any help would be great!

Also...looking for a way to tint the gradient of the NavPanel via an XML hexedecimal value.

Thanks.
-CK</description>
		<content:encoded><![CDATA[<p>Not sure how to implement the event with netStream, or how to load the Video object with the selectedIndex?  Any help would be great!</p>
<p>Also&#8230;looking for a way to tint the gradient of the NavPanel via an XML hexedecimal value.</p>
<p>Thanks.<br />
-CK</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nilloc</title>
		<link>http://blowingthroughlines.com/2008/01/27/cs3/accordion-meets-xml/comment-page-1/#comment-69</link>
		<dc:creator>nilloc</dc:creator>
		<pubDate>Wed, 30 Jan 2008 20:21:18 +0000</pubDate>
		<guid isPermaLink="false">http://blowingthroughlines.com/2008/01/27/flash-as3/accordion-meets-xml/#comment-69</guid>
		<description>Hey Christopher,
There is an even being dispatched when each panel is opened. You could ( and i should, or will when i get a few spare minutes ) wait and do the load of the pic or video when the even it changed.

&lt;pre&gt;
//add this to the main function or perhaps an init function
accord.addEventListener(accordion.EVENT_ON_CHANGE, somethingchanged);
public function somethingchanged(evt:Event):void{
     trace(&quot;the panel changed to number &quot;+accord.currpanel);
}
&lt;/pre&gt;

I also would like to revisit the accordion events and include the actual panel in the event that is returned, to make it easier to add things too on the fly. But that wasn&#039;t an original need for the code.</description>
		<content:encoded><![CDATA[<p>Hey Christopher,<br />
There is an even being dispatched when each panel is opened. You could ( and i should, or will when i get a few spare minutes ) wait and do the load of the pic or video when the even it changed.</p>
<pre>
//add this to the main function or perhaps an init function
accord.addEventListener(accordion.EVENT_ON_CHANGE, somethingchanged);
public function somethingchanged(evt:Event):void{
     trace("the panel changed to number "+accord.currpanel);
}
</pre>
<p>I also would like to revisit the accordion events and include the actual panel in the event that is returned, to make it easier to add things too on the fly. But that wasn&#8217;t an original need for the code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christopher Keeler</title>
		<link>http://blowingthroughlines.com/2008/01/27/cs3/accordion-meets-xml/comment-page-1/#comment-70</link>
		<dc:creator>Christopher Keeler</dc:creator>
		<pubDate>Wed, 30 Jan 2008 15:30:19 +0000</pubDate>
		<guid isPermaLink="false">http://blowingthroughlines.com/2008/01/27/flash-as3/accordion-meets-xml/#comment-70</guid>
		<description>Awesome component.  I have managed to hack apart this to work with RTMP video streams.  Just a few more problems to work out though, like only getting the video streams to play on the active panel.

Currently thay all play at once...:(</description>
		<content:encoded><![CDATA[<p>Awesome component.  I have managed to hack apart this to work with RTMP video streams.  Just a few more problems to work out though, like only getting the video streams to play on the active panel.</p>
<p>Currently thay all play at once&#8230;:(</p>
]]></content:encoded>
	</item>
</channel>
</rss>
