<?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: ImageRail &#8211; Adding Click Event, Styles And HandCursor</title>
	<atom:link href="http://www.flexer.info/2008/06/05/imagerail-adding-click-event-styles-and-handcursor/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.flexer.info/2008/06/05/imagerail-adding-click-event-styles-and-handcursor/</link>
	<description>flex developers web corner</description>
	<lastBuildDate>Wed, 18 Jan 2012 13:28:25 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Homb K</title>
		<link>http://www.flexer.info/2008/06/05/imagerail-adding-click-event-styles-and-handcursor/comment-page-1/#comment-1909</link>
		<dc:creator>Homb K</dc:creator>
		<pubDate>Mon, 24 May 2010 06:09:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/?p=197#comment-1909</guid>
		<description>Problem solved. Needed to change the instantiation policy of the viewstack to all :)</description>
		<content:encoded><![CDATA[<p>Problem solved. Needed to change the instantiation policy of the viewstack to all <img src='http://www.flexer.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Homb K</title>
		<link>http://www.flexer.info/2008/06/05/imagerail-adding-click-event-styles-and-handcursor/comment-page-1/#comment-1908</link>
		<dc:creator>Homb K</dc:creator>
		<pubDate>Mon, 24 May 2010 03:48:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/?p=197#comment-1908</guid>
		<description>My mxml tags get removed from the comments.
One more try to make it look right:


I can’t seem to make two instances of ImageRail work inside of a ViewStack..
If I put only one instance, it works.
If I add two ImageRails this way

ViewStack
  ImageRail id = ir1
  ImageRail id = ir2
  ..
/ViewStack

then I get
a null object reference.
at com.flexer::ImageRail/updateDisplayList()[C:\Work\Flex3\ICP\src\com\flexer\ImageRail.mxml:179]
because in for (var i:uint = 0; i &lt; _canvases.length; i++) the _canvases variable is null.

On the other hand, if I put two instances of Canvas inside of the ViewStack like this

ViewStack
 Canvas
	ImageRail id = ir1
 /Canvas
 Canvas
	ImageRail id = ir2
 /Canvas
 ..
/ViewStack

and then try to populate their images with your code in this manner

private function init():void
{
 for (var i:uint = 0; i &lt; _paths.length; i++) {
 // creating images
     var image:Image = new Image();
     image.source = _paths[i];
     // adding image to images array
     imIR.push(image);
 }
 ir1.images = imIR;
 ir2.images = imIR;
}

then ir2 is always null.

Finally, if I don&#039;t add these two instances in a ViewStack, but add them separately to the application and populate them in the init function just as above, then one of them doesn&#039;t display any image.

Any help is highly appreciated, as I like what you&#039;ve done in this control.</description>
		<content:encoded><![CDATA[<p>My mxml tags get removed from the comments.<br />
One more try to make it look right:</p>
<p>I can’t seem to make two instances of ImageRail work inside of a ViewStack..<br />
If I put only one instance, it works.<br />
If I add two ImageRails this way</p>
<p>ViewStack<br />
  ImageRail id = ir1<br />
  ImageRail id = ir2<br />
  ..<br />
/ViewStack</p>
<p>then I get<br />
a null object reference.<br />
at com.flexer::ImageRail/updateDisplayList()[C:\Work\Flex3\ICP\src\com\flexer\ImageRail.mxml:179]<br />
because in for (var i:uint = 0; i &lt; _canvases.length; i++) the _canvases variable is null.</p>
<p>On the other hand, if I put two instances of Canvas inside of the ViewStack like this</p>
<p>ViewStack<br />
 Canvas<br />
	ImageRail id = ir1<br />
 /Canvas<br />
 Canvas<br />
	ImageRail id = ir2<br />
 /Canvas<br />
 ..<br />
/ViewStack</p>
<p>and then try to populate their images with your code in this manner</p>
<p>private function init():void<br />
{<br />
 for (var i:uint = 0; i &lt; _paths.length; i++) {<br />
 // creating images<br />
     var image:Image = new Image();<br />
     image.source = _paths[i];<br />
     // adding image to images array<br />
     imIR.push(image);<br />
 }<br />
 ir1.images = imIR;<br />
 ir2.images = imIR;<br />
}</p>
<p>then ir2 is always null.</p>
<p>Finally, if I don&#039;t add these two instances in a ViewStack, but add them separately to the application and populate them in the init function just as above, then one of them doesn&#039;t display any image.</p>
<p>Any help is highly appreciated, as I like what you&#039;ve done in this control.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Homb K</title>
		<link>http://www.flexer.info/2008/06/05/imagerail-adding-click-event-styles-and-handcursor/comment-page-1/#comment-1907</link>
		<dc:creator>Homb K</dc:creator>
		<pubDate>Mon, 24 May 2010 03:42:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/?p=197#comment-1907</guid>
		<description>Small correction, instead of 

&quot;If I put only one instance, it works.
If I add two ImageRails this way

then I get&quot;

one should read

&quot;If I put only one instance, it works.
If I add two ImageRails this way




..


then I get&quot;</description>
		<content:encoded><![CDATA[<p>Small correction, instead of </p>
<p>&#8220;If I put only one instance, it works.<br />
If I add two ImageRails this way</p>
<p>then I get&#8221;</p>
<p>one should read</p>
<p>&#8220;If I put only one instance, it works.<br />
If I add two ImageRails this way</p>
<p>..</p>
<p>then I get&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Homb K</title>
		<link>http://www.flexer.info/2008/06/05/imagerail-adding-click-event-styles-and-handcursor/comment-page-1/#comment-1906</link>
		<dc:creator>Homb K</dc:creator>
		<pubDate>Mon, 24 May 2010 03:39:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/?p=197#comment-1906</guid>
		<description>I can&#039;t seem to make two instances of ImageRail work inside of a ViewStack..
If I put only one instance, it works.
If I add two ImageRails this way
	
		
		



then I get 
a null object reference.
	at com.flexer::ImageRail/updateDisplayList()[C:\Work\Flex3\ICP\src\com\flexer\ImageRail.mxml:179]
because in for (var i:uint = 0; i &lt; _canvases.length; i++) the _canvases variable is null.

On the other hand, if I put two instances of Canvas inside of the ViewStack like this

 
   
 
 
   
 

and then try to populate their images with your code in this manner
            private function init():void
            {
            	
                for (var i:uint = 0; i &lt; _paths.length; i++) {
                    // creating images
                    var image:Image = new Image();
                    image.source = _paths[i];
                    // adding image to images array
                    imIR.push(image);
                }
                ir1.images = imIR;
                ir2.images = imIR;
            }
then ir2 is always null.

Finally, if I don&#039;t add these two instances in a ViewStack, but add them separately to the application and populate them in the init function just as above, then one of them doesn&#039;t display any image.

Any help is highly appreciated, as I like what you&#039;ve done in this control.</description>
		<content:encoded><![CDATA[<p>I can&#8217;t seem to make two instances of ImageRail work inside of a ViewStack..<br />
If I put only one instance, it works.<br />
If I add two ImageRails this way</p>
<p>then I get<br />
a null object reference.<br />
	at com.flexer::ImageRail/updateDisplayList()[C:\Work\Flex3\ICP\src\com\flexer\ImageRail.mxml:179]<br />
because in for (var i:uint = 0; i &lt; _canvases.length; i++) the _canvases variable is null.</p>
<p>On the other hand, if I put two instances of Canvas inside of the ViewStack like this</p>
<p>and then try to populate their images with your code in this manner<br />
            private function init():void<br />
            {</p>
<p>                for (var i:uint = 0; i &lt; _paths.length; i++) {<br />
                    // creating images<br />
                    var image:Image = new Image();<br />
                    image.source = _paths[i];<br />
                    // adding image to images array<br />
                    imIR.push(image);<br />
                }<br />
                ir1.images = imIR;<br />
                ir2.images = imIR;<br />
            }<br />
then ir2 is always null.</p>
<p>Finally, if I don&#039;t add these two instances in a ViewStack, but add them separately to the application and populate them in the init function just as above, then one of them doesn&#039;t display any image.</p>
<p>Any help is highly appreciated, as I like what you&#039;ve done in this control.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prashant</title>
		<link>http://www.flexer.info/2008/06/05/imagerail-adding-click-event-styles-and-handcursor/comment-page-1/#comment-1752</link>
		<dc:creator>Prashant</dc:creator>
		<pubDate>Mon, 23 Nov 2009 07:11:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/?p=197#comment-1752</guid>
		<description>Great code. Really helpful to me. Thanks.</description>
		<content:encoded><![CDATA[<p>Great code. Really helpful to me. Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: j</title>
		<link>http://www.flexer.info/2008/06/05/imagerail-adding-click-event-styles-and-handcursor/comment-page-1/#comment-1611</link>
		<dc:creator>j</dc:creator>
		<pubDate>Thu, 07 May 2009 20:44:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/?p=197#comment-1611</guid>
		<description>I can&#039;t seem to get this component to work in an AIR App, using local paths instead of URLs for the images.

is there any difference in how the component should be used in AIR as opposed to Flash?</description>
		<content:encoded><![CDATA[<p>I can&#8217;t seem to get this component to work in an AIR App, using local paths instead of URLs for the images.</p>
<p>is there any difference in how the component should be used in AIR as opposed to Flash?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrei Ionescu</title>
		<link>http://www.flexer.info/2008/06/05/imagerail-adding-click-event-styles-and-handcursor/comment-page-1/#comment-817</link>
		<dc:creator>Andrei Ionescu</dc:creator>
		<pubDate>Fri, 26 Sep 2008 04:03:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/?p=197#comment-817</guid>
		<description>Thank you James. I will try to test it with 1000 photos. Your two ideas - not questions :) - are good and I&#039;ll try to improve it keeping them in mind.</description>
		<content:encoded><![CDATA[<p>Thank you James. I will try to test it with 1000 photos. Your two ideas &#8211; not questions <img src='http://www.flexer.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  &#8211; are good and I&#8217;ll try to improve it keeping them in mind.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://www.flexer.info/2008/06/05/imagerail-adding-click-event-styles-and-handcursor/comment-page-1/#comment-816</link>
		<dc:creator>James</dc:creator>
		<pubDate>Thu, 25 Sep 2008 22:59:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/?p=197#comment-816</guid>
		<description>Two questions for future development. First would be a method to not attach all items to the stage ahead of time. If there are 1000 images in this component Id assume it would hold a lot of overhead since they are all being attached right away. The second would be que loading of the images. Stagger the load so that you can start preloading and storing. Both on the tougher side to implement but would drastically improve overhead id guess. Ive been trying to create a list like this that recycles its children so as not to have so many items on the screen at one point. Overall though I really like this one!</description>
		<content:encoded><![CDATA[<p>Two questions for future development. First would be a method to not attach all items to the stage ahead of time. If there are 1000 images in this component Id assume it would hold a lot of overhead since they are all being attached right away. The second would be que loading of the images. Stagger the load so that you can start preloading and storing. Both on the tougher side to implement but would drastically improve overhead id guess. Ive been trying to create a list like this that recycles its children so as not to have so many items on the screen at one point. Overall though I really like this one!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flash Speaks Actionscript</title>
		<link>http://www.flexer.info/2008/06/05/imagerail-adding-click-event-styles-and-handcursor/comment-page-1/#comment-288</link>
		<dc:creator>Flash Speaks Actionscript</dc:creator>
		<pubDate>Thu, 12 Jun 2008 13:31:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.flexer.info/?p=197#comment-288</guid>
		<description>&lt;strong&gt;ImageRail Update: Adding Click Event, Styles And Handcursor...&lt;/strong&gt;


In a previous post, I introduced a new MXML component called ImageRail created by Andrei Ionescu of FLEX{er}.  Andrei has added updated it to add some new features that were considered missing.
The list of new features include:

imageClick: triggered ...</description>
		<content:encoded><![CDATA[<div style="padding: 1em; background: #d3e1ef; /* border: dotted 1px #777777; */">
<p><strong>ImageRail Update: Adding Click Event, Styles And Handcursor&#8230;</strong></p>
<p>In a previous post, I introduced a new MXML component called ImageRail created by Andrei Ionescu of FLEX{er}.  Andrei has added updated it to add some new features that were considered missing.<br />
The list of new features include:</p>
<p>imageClick: triggered &#8230;</p>
</div>
]]></content:encoded>
	</item>
</channel>
</rss>

