tag:blogger.com,1999:blog-1955739017412408985.post2780059074798889710..comments2023-06-21T08:29:32.288-07:00Comments on The Hard Way: Flex: TileList cell switching/redraw problem using an itemRenderermetric152http://www.blogger.com/profile/11587192756320730861noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-1955739017412408985.post-13931549055387868622010-07-12T04:16:11.079-07:002010-07-12T04:16:11.079-07:00Fixed my problem... Thanks a million.Fixed my problem... Thanks a million.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1955739017412408985.post-39592059635420411732010-04-09T03:05:53.902-07:002010-04-09T03:05:53.902-07:00Hi
I had a problem similar to the one above, and ...Hi<br /><br />I had a problem similar to the one above, and also when using embedded images: scrolling made the images disappear. Fixed it in the itemRenderer, tileImage in your case, by changing the following: <br /><br />Original_Bad:<br /><br /><br />Working_Good:<br /> <br /> <br /> <br /> <br /><br /><br />Found the soluiton at: <br />http://blog.flexexamples.com/2007/08/03/duplicating-images-using-the-bitmap-and-bitmapdata-classes/<br /><br />BrianBrian Bishophttp://bishoponvsto.wordpress.comnoreply@blogger.comtag:blogger.com,1999:blog-1955739017412408985.post-55286430436272110732010-04-07T14:27:17.297-07:002010-04-07T14:27:17.297-07:00I ran into a similar issue when doing something a ...I ran into a similar issue when doing something a bit more complex. You might need to use this.removeAllChildren() in the custom component setter to make sure there is nothing in the cell. If that doesn't fix it then please let me know.metric152https://www.blogger.com/profile/11587192756320730861noreply@blogger.comtag:blogger.com,1999:blog-1955739017412408985.post-45738100542151099402010-04-07T14:06:04.421-07:002010-04-07T14:06:04.421-07:00I am using your method for the same issue. In my a...I am using your method for the same issue. In my app my TileList loads custom components (a VBox with an Image and a Label) for about 30 images. My Image's source is set to a "no image" graphic file initially. <br /><br />When my data loads from the database (via CFC), I load objects into an ArrayCollection that is the dataProvider for my TileList. Then, following your method, the "data" value is passed into my custom component's setter function (as a typed object). If there is an Image path in that object the component's Image source is updated, otherwise it stays the default. <br /><br />When the app loads I see the 30 images, 25 generic "no image" images and 5 custom. However if I scroll, the custom images appear to duplicate. They aren't really duplicating, rather the custom image path gets applied to a 2nd and then a 3rd image. So in the end I have the real custom image and then 2 others that appear the same but actually shouldn't have an image at all.<br /><br />what causes this and how should I work around it??Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1955739017412408985.post-79262080627050400592009-12-03T16:07:42.689-08:002009-12-03T16:07:42.689-08:00It sure feels like a bug. I spent way to much time...It sure feels like a bug. I spent way to much time trying to figure this out(2wk+). You really don't want to see my interim solutions. I'm glad it helped you.<br /><br />In another project I was adding a canvas to the tile which was created as a canvas. When I updated the tile I had to use removeAll() on the tile before adding anything else to it. Not sure if it's a bug, or if the tileList is supposed to be used for really simple things and it falls apart when trying advanced things. It might be a side affect of object recycling to keep memory low.metric152https://www.blogger.com/profile/11587192756320730861noreply@blogger.comtag:blogger.com,1999:blog-1955739017412408985.post-38886557105668599192009-12-03T14:23:01.625-08:002009-12-03T14:23:01.625-08:00Priceless!
I spent a few hours trying to figure ...Priceless! <br /><br />I spent a few hours trying to figure out why my tilelist wasn't updating properly. By using your technique my problem is solved. I was using a Drop-In itemRender would was inconsistently updating. Wouldn't this be considered a bug in the SDK? <br /><br />Thanks.Keith Leehttp://www.reefkeysoftware.comnoreply@blogger.com