Re: [flexcoders] Re: FadeIn Effect not working with custom item renderers in List
I have to add, itemsChangeEffect works fine on tileList using itemrenderers (with containers) the problem is strictly related to the itemsChangeEffect addItem effects behaviour on a List only. the effect is playing fine on the removeItem. On Fri, Feb 6, 2009 at 12:41 PM, Thibaud Van Vreckem wrote: > I'm hitting the exact same issue.. Any solutions yet ? > should I submit that as a bug ? > > > On Wed, Jan 21, 2009 at 4:14 PM, Amy wrote: > >> --- In flexcoders@yahoogroups.com , Josh >> McDonald wrote: >> > >> > It may be caused by Container not implementing >> IDropInListItemRenderer or >> > IListItemRenderer. You really don't want to be extending Container >> for item >> > renderers if you can avoid it, I believe it's a big performance >> penalty. >> >> AFAIK, those interfaces only deal with how data gets passed into the >> renderer, not how effects are applied. >> >> >> > >
Re: [flexcoders] Re: FadeIn Effect not working with custom item renderers in List
I'm hitting the exact same issue.. Any solutions yet ? should I submit that as a bug ? On Wed, Jan 21, 2009 at 4:14 PM, Amy wrote: > --- In flexcoders@yahoogroups.com , Josh > McDonald wrote: > > > > It may be caused by Container not implementing > IDropInListItemRenderer or > > IListItemRenderer. You really don't want to be extending Container > for item > > renderers if you can avoid it, I believe it's a big performance > penalty. > > AFAIK, those interfaces only deal with how data gets passed into the > renderer, not how effects are applied. > > >
[flexcoders] Re: FadeIn Effect not working with custom item renderers in List
--- In flexcoders@yahoogroups.com, Josh McDonald wrote: > > It may be caused by Container not implementing IDropInListItemRenderer or > IListItemRenderer. You really don't want to be extending Container for item > renderers if you can avoid it, I believe it's a big performance penalty. AFAIK, those interfaces only deal with how data gets passed into the renderer, not how effects are applied.
[flexcoders] Re: FadeIn Effect not working with custom item renderers in List
--- In flexcoders@yahoogroups.com, "tonyjobrien" wrote: > > --- In flexcoders@yahoogroups.com, "Amy" wrote: > > > > --- In flexcoders@yahoogroups.com, "tonyjobrien" wrote: > > > > > > I'm trying to get the FadeIn effect to work on my List control, but > > > I'm having no luck. The custom renderer stays white for the > > > FadeInDuration and then appears instantly. If I switch back to using > > > the default renderer, all is well. Also, if I have both a list with > > a > > > custom renderer and the default at the same time, they both exhibit > > > the same behaviour as the custom renderer. Here is a simple Flex app > > > that shows the issue (comment out the lists as required). > > > > > > FYI, I'm using Flex 3 on Windows XP with Firefox 3. > > > > Try changing: > > > > > > > > > > > > > > > > > > > > > > to > > > > > > > > > > > > > > > > > > > > HTH; > > > > Amy > > > > Amy, > > I have tried that but it still does not display properly. I've tried > changing the Canvas component to other container objects, but they all > appear to exhibit the same functionality. > > I've tried with both 3.1 and 3.2 versions of the SDK. > > The list effect starts with a background color of blue (to make it > easier to see what's happening). When using just a Label as the > renderer, I can see the blue background boxes resizing into position > and then the label fading into view over the 4 second duration. > > But when using any sort of container object (admittedly I've only > tried Canvas, HBox and VBox), the list remains white for the entire 4 > second duration, at which point, the renderers become visible > immediately (with no blue background or fading at all). > > When I place both list views on the screen at once, they both exhibit > the behaviour of the container renderer. This leads me to believe that > the container is doing something different and the single-threaded > nature of Flash is causing both views to update once the fade effect > has finished. > > Problem is, I can't work out what it's doing. I suspect that the problem is with one of two things: 1) The specific way that the itemsChangeEffect is implemented 2) The loop where you add the items to the ArrayCollection. The reason I say the first is that you can see an example here http://flexdiary.blogspot.com/2008/09/groupingcollection-example- featuring.html where fade effects are working fine on containers. So if there is a problem with fade effects, it's specific to what happens in that particular situation. If it's the second, you can figure it out pretty quickly by calling disableAutoUpdate() before the loop where you populate the AC and enableAutoUpdate() after the loop. Finally, you may want to double-check to make sure that you did actually set the blendMode on the label to "layer". HTH; Amy
Re: [flexcoders] Re: FadeIn Effect not working with custom item renderers in List
It may be caused by Container not implementing IDropInListItemRenderer or IListItemRenderer. You really don't want to be extending Container for item renderers if you can avoid it, I believe it's a big performance penalty. -Josh 2009/1/21 tonyjobrien > --- In flexcoders@yahoogroups.com, "sunild99" wrote: > > > > I got your example to work by removing the Canvas tags from this > snippet: > > > > > > > > > > > > > > > > > > > > > > Sunil > > > > Perhaps I should have been clearer in my original description. The > issue seems to be related to the use of containers as custom > renderers. While I admit that in this case, removal of the container > solves the issue, this is just a simple case to demonstrate the issue. > In my real life case, my item renderers are much more complicated, > containing many sub-components, hence the use of containers. > > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Alternative FAQ location: > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847 > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups > Links > > > > -- "Therefore, send not to know For whom the bell tolls. It tolls for thee." Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: j...@gfunk007.com :: http://flex.joshmcdonald.info/ :: http://twitter.com/sophistifunk
[flexcoders] Re: FadeIn Effect not working with custom item renderers in List
--- In flexcoders@yahoogroups.com, "sunild99" wrote: > > I got your example to work by removing the Canvas tags from this snippet: > > > > > > > > > > > Sunil > Perhaps I should have been clearer in my original description. The issue seems to be related to the use of containers as custom renderers. While I admit that in this case, removal of the container solves the issue, this is just a simple case to demonstrate the issue. In my real life case, my item renderers are much more complicated, containing many sub-components, hence the use of containers.
[flexcoders] Re: FadeIn Effect not working with custom item renderers in List
--- In flexcoders@yahoogroups.com, "Amy" wrote: > > --- In flexcoders@yahoogroups.com, "tonyjobrien" wrote: > > > > I'm trying to get the FadeIn effect to work on my List control, but > > I'm having no luck. The custom renderer stays white for the > > FadeInDuration and then appears instantly. If I switch back to using > > the default renderer, all is well. Also, if I have both a list with > a > > custom renderer and the default at the same time, they both exhibit > > the same behaviour as the custom renderer. Here is a simple Flex app > > that shows the issue (comment out the lists as required). > > > > FYI, I'm using Flex 3 on Windows XP with Firefox 3. > > Try changing: > > > > > > > > > > > to > > > > > > > > > > HTH; > > Amy > Amy, I have tried that but it still does not display properly. I've tried changing the Canvas component to other container objects, but they all appear to exhibit the same functionality. I've tried with both 3.1 and 3.2 versions of the SDK. The list effect starts with a background color of blue (to make it easier to see what's happening). When using just a Label as the renderer, I can see the blue background boxes resizing into position and then the label fading into view over the 4 second duration. But when using any sort of container object (admittedly I've only tried Canvas, HBox and VBox), the list remains white for the entire 4 second duration, at which point, the renderers become visible immediately (with no blue background or fading at all). When I place both list views on the screen at once, they both exhibit the behaviour of the container renderer. This leads me to believe that the container is doing something different and the single-threaded nature of Flash is causing both views to update once the fade effect has finished. Problem is, I can't work out what it's doing.
[flexcoders] Re: FadeIn Effect not working with custom item renderers in List
I got your example to work by removing the Canvas tags from this snippet: Sunil
[flexcoders] Re: FadeIn Effect not working with custom item renderers in List
--- In flexcoders@yahoogroups.com, "tonyjobrien" wrote: > > I'm trying to get the FadeIn effect to work on my List control, but > I'm having no luck. The custom renderer stays white for the > FadeInDuration and then appears instantly. If I switch back to using > the default renderer, all is well. Also, if I have both a list with a > custom renderer and the default at the same time, they both exhibit > the same behaviour as the custom renderer. Here is a simple Flex app > that shows the issue (comment out the lists as required). > > FYI, I'm using Flex 3 on Windows XP with Firefox 3. Try changing: to HTH; Amy