<?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: Introducing the FlexibleContainer component (aka Advanced ActionScript Refactoring &#8211; Step 3)</title>
	<atom:link href="http://kuwamoto.org/2007/05/17/introducing-the-flexiblecontainer-component-aka-advanced-actionscript-refactoring-step-3/feed/" rel="self" type="application/rss+xml" />
	<link>http://kuwamoto.org/2007/05/17/introducing-the-flexiblecontainer-component-aka-advanced-actionscript-refactoring-step-3/</link>
	<description>music, technology, interfaces, people</description>
	<lastBuildDate>Mon, 19 Oct 2009 16:37:14 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: ben</title>
		<link>http://kuwamoto.org/2007/05/17/introducing-the-flexiblecontainer-component-aka-advanced-actionscript-refactoring-step-3/comment-page-1/#comment-195935</link>
		<dc:creator>ben</dc:creator>
		<pubDate>Sun, 01 Jun 2008 22:52:27 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2007/05/17/introducing-the-flexiblecontainer-component-aka-advanced-actionscript-refactoring-step-3/#comment-195935</guid>
		<description>thanks for the walk through - the result looks quite useful. a bug that i just found:
in your example here http://examples.kuwamoto.org/DragTile/DragTile_step3/DragDrop.html
try this:

- change to canvas
- drag an image down into the second flexible container
- drag the image up into the first flexible container again
- click on the image
-&gt;
ArgumentError: Error #2015: Invalid BitmapData.
	at flash.display::BitmapData()
	at qs.controls::UIBitmap()
	at qs.controls::FlexibleContainer/dragStart()</description>
		<content:encoded><![CDATA[<p>thanks for the walk through &#8211; the result looks quite useful. a bug that i just found:<br />
in your example here <a href="http://examples.kuwamoto.org/DragTile/DragTile_step3/DragDrop.html" rel="nofollow">http://examples.kuwamoto.org/DragTile/DragTile_step3/DragDrop.html</a><br />
try this:</p>
<p>- change to canvas<br />
- drag an image down into the second flexible container<br />
- drag the image up into the first flexible container again<br />
- click on the image<br />
-&gt;<br />
ArgumentError: Error #2015: Invalid BitmapData.<br />
	at flash.display::BitmapData()<br />
	at qs.controls::UIBitmap()<br />
	at qs.controls::FlexibleContainer/dragStart()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: visualize &#187; kuwamoto.org » Blog Archive » Introducing the FlexibleContainer component (aka Advanced ActionScript Refactoring - Step 3)</title>
		<link>http://kuwamoto.org/2007/05/17/introducing-the-flexiblecontainer-component-aka-advanced-actionscript-refactoring-step-3/comment-page-1/#comment-180518</link>
		<dc:creator>visualize &#187; kuwamoto.org » Blog Archive » Introducing the FlexibleContainer component (aka Advanced ActionScript Refactoring - Step 3)</dc:creator>
		<pubDate>Tue, 29 Apr 2008 14:01:59 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2007/05/17/introducing-the-flexiblecontainer-component-aka-advanced-actionscript-refactoring-step-3/#comment-180518</guid>
		<description>[...] kuwamoto.org » Blog Archive » Introducing the FlexibleContainer component (aka Advanced ActionScript Refactoring - Step 3) [...]</description>
		<content:encoded><![CDATA[<p>[...] kuwamoto.org » Blog Archive » Introducing the FlexibleContainer component (aka Advanced ActionScript Refactoring &#8211; Step 3) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick Tai</title>
		<link>http://kuwamoto.org/2007/05/17/introducing-the-flexiblecontainer-component-aka-advanced-actionscript-refactoring-step-3/comment-page-1/#comment-46820</link>
		<dc:creator>Patrick Tai</dc:creator>
		<pubDate>Mon, 06 Aug 2007 07:51:18 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2007/05/17/introducing-the-flexiblecontainer-component-aka-advanced-actionscript-refactoring-step-3/#comment-46820</guid>
		<description>I tried to contact you but contact page returns 404 (and so the about us) :(</description>
		<content:encoded><![CDATA[<p>I tried to contact you but contact page returns 404 (and so the about us) :(</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: www.r10.net kuresel isinmaya hayir seo yarismasi</title>
		<link>http://kuwamoto.org/2007/05/17/introducing-the-flexiblecontainer-component-aka-advanced-actionscript-refactoring-step-3/comment-page-1/#comment-39469</link>
		<dc:creator>www.r10.net kuresel isinmaya hayir seo yarismasi</dc:creator>
		<pubDate>Thu, 12 Jul 2007 21:50:21 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2007/05/17/introducing-the-flexiblecontainer-component-aka-advanced-actionscript-refactoring-step-3/#comment-39469</guid>
		<description>huffle” effect when reordering components on a potential drop and

I am a relative Flex newbie (oldskool Flash 4-8 developer) and would appreciate any insight. I’ll be glad to include code samples of what you would think helpful.

Thansk again!</description>
		<content:encoded><![CDATA[<p>huffle” effect when reordering components on a potential drop and</p>
<p>I am a relative Flex newbie (oldskool Flash 4-8 developer) and would appreciate any insight. I’ll be glad to include code samples of what you would think helpful.</p>
<p>Thansk again!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Refactoring or &#8220;making world better&#8221; &#124;</title>
		<link>http://kuwamoto.org/2007/05/17/introducing-the-flexiblecontainer-component-aka-advanced-actionscript-refactoring-step-3/comment-page-1/#comment-39120</link>
		<dc:creator>Refactoring or &#8220;making world better&#8221; &#124;</dc:creator>
		<pubDate>Wed, 11 Jul 2007 06:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2007/05/17/introducing-the-flexiblecontainer-component-aka-advanced-actionscript-refactoring-step-3/#comment-39120</guid>
		<description>[...] Introducing the FlexibleContainer component (aka Advanced ActionScript Refactoring - Step 3) [...]</description>
		<content:encoded><![CDATA[<p>[...] Introducing the FlexibleContainer component (aka Advanced ActionScript Refactoring &#8211; Step 3) [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Randall Gremillion</title>
		<link>http://kuwamoto.org/2007/05/17/introducing-the-flexiblecontainer-component-aka-advanced-actionscript-refactoring-step-3/comment-page-1/#comment-37054</link>
		<dc:creator>Randall Gremillion</dc:creator>
		<pubDate>Mon, 02 Jul 2007 22:05:29 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2007/05/17/introducing-the-flexiblecontainer-component-aka-advanced-actionscript-refactoring-step-3/#comment-37054</guid>
		<description>I would like to further customize this to reorder custom components instead of images (actually individual search field widgets) to construct a robust advanced search feature where queries can be built edited and stored. I have made the change to support components however I am seeing odd behavior on the drop (since I have only on panel, I am only worried about dragging and dropping to reorder - I have remove the DragEnter behaviors):

RangeError: Error #2006: The supplied index is out of bounds.
	at flash.display::DisplayObjectContainer/getChildAt()
	at mx.core::Container/getChildAt()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:2369]
	at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::getScrollableRect()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:4234]
	at mx.core::Container/mx.core:Container::createContentPaneAndScrollbarsIfNeeded()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:4194]
 etc.

I also see:

1.the dragProxy is not lined up with the mouse (usually when dragging with multiple components)
2. No &quot;shuffle&quot; effect when reordering components on a potential drop and

I am  a relative Flex newbie (oldskool Flash 4-8 developer) and would appreciate any insight. I&#039;ll be glad to include code samples of what you would think helpful.

Thansk again!

Randall Gremillion</description>
		<content:encoded><![CDATA[<p>I would like to further customize this to reorder custom components instead of images (actually individual search field widgets) to construct a robust advanced search feature where queries can be built edited and stored. I have made the change to support components however I am seeing odd behavior on the drop (since I have only on panel, I am only worried about dragging and dropping to reorder &#8211; I have remove the DragEnter behaviors):</p>
<p>RangeError: Error #2006: The supplied index is out of bounds.<br />
	at flash.display::DisplayObjectContainer/getChildAt()<br />
	at mx.core::Container/getChildAt()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:2369]<br />
	at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::getScrollableRect()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:4234]<br />
	at mx.core::Container/mx.core:Container::createContentPaneAndScrollbarsIfNeeded()[C:\dev\flex_201_gmc\sdk\frameworks\mx\core\Container.as:4194]<br />
 etc.</p>
<p>I also see:</p>
<p>1.the dragProxy is not lined up with the mouse (usually when dragging with multiple components)<br />
2. No &#8220;shuffle&#8221; effect when reordering components on a potential drop and</p>
<p>I am  a relative Flex newbie (oldskool Flash 4-8 developer) and would appreciate any insight. I&#8217;ll be glad to include code samples of what you would think helpful.</p>
<p>Thansk again!</p>
<p>Randall Gremillion</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chase Brammer</title>
		<link>http://kuwamoto.org/2007/05/17/introducing-the-flexiblecontainer-component-aka-advanced-actionscript-refactoring-step-3/comment-page-1/#comment-26580</link>
		<dc:creator>Chase Brammer</dc:creator>
		<pubDate>Tue, 22 May 2007 23:55:36 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2007/05/17/introducing-the-flexiblecontainer-component-aka-advanced-actionscript-refactoring-step-3/#comment-26580</guid>
		<description>ok, so it doesnt like what I am submitting!  I am just going to leave out that line

///what is this doing?
var renderer:IUIComponent = _renderCache.associate(_items);

//this is the really confusing part to me, especially the syntax of IDataRederer(rederer) ...
//after looking at the IDataRederer interface it doesnt look like this should be possible... what am I missing?
IDataRenderer(renderer).data = _items;

//adds it to a list of renderers for later reference
_renderers = renderer;

//add this to the display list, any special reason for having to put it in a DisplayObject() call?
addChild(DisplayObject(renderer));
}
//again, why do we need to end the association?
_renderCache.endAssociation();


any further explanation?</description>
		<content:encoded><![CDATA[<p>ok, so it doesnt like what I am submitting!  I am just going to leave out that line</p>
<p>///what is this doing?<br />
var renderer:IUIComponent = _renderCache.associate(_items);</p>
<p>//this is the really confusing part to me, especially the syntax of IDataRederer(rederer) &#8230;<br />
//after looking at the IDataRederer interface it doesnt look like this should be possible&#8230; what am I missing?<br />
IDataRenderer(renderer).data = _items;</p>
<p>//adds it to a list of renderers for later reference<br />
_renderers = renderer;</p>
<p>//add this to the display list, any special reason for having to put it in a DisplayObject() call?<br />
addChild(DisplayObject(renderer));<br />
}<br />
//again, why do we need to end the association?<br />
_renderCache.endAssociation();</p>
<p>any further explanation?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chase Brammer</title>
		<link>http://kuwamoto.org/2007/05/17/introducing-the-flexiblecontainer-component-aka-advanced-actionscript-refactoring-step-3/comment-page-1/#comment-26579</link>
		<dc:creator>Chase Brammer</dc:creator>
		<pubDate>Tue, 22 May 2007 23:55:22 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2007/05/17/introducing-the-flexiblecontainer-component-aka-advanced-actionscript-refactoring-step-3/#comment-26579</guid>
		<description>ok, so it doesnt like what I am submitting!  I am just going to leave out that line

Thank you for posting such an awesome component.  That code is pretty rich and deep, and to be hoenst, I am not sure that I understand it all!  Especially this part, I know that this is what adds all the items (images) to the display list, but I am not understanding the syntax and reasoning behind it... here is the code.


//_renderCash is an instance of Adobe&#039;s AssociativeInstanceCache.as
//what exactly does this do, and why do we need to open and close the associations?
_renderCache.beginAssociation();

///what is this doing?
var renderer:IUIComponent = _renderCache.associate(_items);

//this is the really confusing part to me, especially the syntax of IDataRederer(rederer) ...
//after looking at the IDataRederer interface it doesnt look like this should be possible... what am I missing?
IDataRenderer(renderer).data = _items;

//adds it to a list of renderers for later reference
_renderers = renderer;

//add this to the display list, any special reason for having to put it in a DisplayObject() call?
addChild(DisplayObject(renderer));
}
//again, why do we need to end the association?
_renderCache.endAssociation();


any further explanation?</description>
		<content:encoded><![CDATA[<p>ok, so it doesnt like what I am submitting!  I am just going to leave out that line</p>
<p>Thank you for posting such an awesome component.  That code is pretty rich and deep, and to be hoenst, I am not sure that I understand it all!  Especially this part, I know that this is what adds all the items (images) to the display list, but I am not understanding the syntax and reasoning behind it&#8230; here is the code.</p>
<p>//_renderCash is an instance of Adobe&#8217;s AssociativeInstanceCache.as<br />
//what exactly does this do, and why do we need to open and close the associations?<br />
_renderCache.beginAssociation();</p>
<p>///what is this doing?<br />
var renderer:IUIComponent = _renderCache.associate(_items);</p>
<p>//this is the really confusing part to me, especially the syntax of IDataRederer(rederer) &#8230;<br />
//after looking at the IDataRederer interface it doesnt look like this should be possible&#8230; what am I missing?<br />
IDataRenderer(renderer).data = _items;</p>
<p>//adds it to a list of renderers for later reference<br />
_renderers = renderer;</p>
<p>//add this to the display list, any special reason for having to put it in a DisplayObject() call?<br />
addChild(DisplayObject(renderer));<br />
}<br />
//again, why do we need to end the association?<br />
_renderCache.endAssociation();</p>
<p>any further explanation?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chase Brammer</title>
		<link>http://kuwamoto.org/2007/05/17/introducing-the-flexiblecontainer-component-aka-advanced-actionscript-refactoring-step-3/comment-page-1/#comment-26578</link>
		<dc:creator>Chase Brammer</dc:creator>
		<pubDate>Tue, 22 May 2007 23:54:09 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2007/05/17/introducing-the-flexiblecontainer-component-aka-advanced-actionscript-refactoring-step-3/#comment-26578</guid>
		<description>it killed half my post... here is the second half

//loop through the array and create a bunch of items in our container
for(i = 0; i </description>
		<content:encoded><![CDATA[<p>it killed half my post&#8230; here is the second half</p>
<p>//loop through the array and create a bunch of items in our container<br />
for(i = 0; i</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chase Brammer</title>
		<link>http://kuwamoto.org/2007/05/17/introducing-the-flexiblecontainer-component-aka-advanced-actionscript-refactoring-step-3/comment-page-1/#comment-26577</link>
		<dc:creator>Chase Brammer</dc:creator>
		<pubDate>Tue, 22 May 2007 23:52:30 +0000</pubDate>
		<guid isPermaLink="false">http://kuwamoto.org/2007/05/17/introducing-the-flexiblecontainer-component-aka-advanced-actionscript-refactoring-step-3/#comment-26577</guid>
		<description>Thank you for posting such an awesome component.  That code is pretty rich and deep, and to be hoenst, I am not sure that I understand it all!  Especially this part, I know that this is what adds all the items (images) to the display list, but I am not understanding the syntax and reasoning behind it... here is the code.


//_renderCash is an instance of Adobe&#039;s AssociativeInstanceCache.as
//what exactly does this do, and why do we need to open and close the associations?
_renderCache.beginAssociation();

//loop through the array and create a bunch of items in our container
for(i = 0; i </description>
		<content:encoded><![CDATA[<p>Thank you for posting such an awesome component.  That code is pretty rich and deep, and to be hoenst, I am not sure that I understand it all!  Especially this part, I know that this is what adds all the items (images) to the display list, but I am not understanding the syntax and reasoning behind it&#8230; here is the code.</p>
<p>//_renderCash is an instance of Adobe&#8217;s AssociativeInstanceCache.as<br />
//what exactly does this do, and why do we need to open and close the associations?<br />
_renderCache.beginAssociation();</p>
<p>//loop through the array and create a bunch of items in our container<br />
for(i = 0; i</p>
]]></content:encoded>
	</item>
</channel>
</rss>
