Thu 21 Feb 2008
A number of people have written me over the past few months to mention that they’ve had trouble getting the Reflection component to work in various cases. I haven’t had time to look at each of the problems, but I do have an updated version of Reflector.as that may work better. If you’ve been having trouble with the original Reflector code, try this one out and let me know if it fixes your problem.
digg this |
del.icio.us | 12 Comments
[...] 2/21/2008: See this post for the latest version of Reflector.as. I’ll reintegrate it into the source code linked to [...]
Hi Narciso, I’ve tried your reflection component and I’ve got some problems with it. If I use a Combobox, it doesn’t works fine, when I try to open it, it opens but it closes inmediately. Can you please tell me what should I do?
Thanks
Hi. I recently wrote a turoial on how to create reflections. It for Flash but I guess it wuold work with Flex too and it is a very simple technique. Take a look, and tell me what you think – it is here.
Hi Narciso,
Thanks for your great component.
I’ve been trying to adapt your component to reflect video streaming into the VideoDisplay component. Do you have any suggestions? I am assuming that I need to coordinate the display of a frame in the video with an “invalidate properties” and subsequent redraw, but I have been unsuccessful.
Thanks.
I see that the problem is that BitmapData.draw() cannot be used with rtmp. Any suggestions for how to reflect a streaming video? Thanks.
Sorry Robert–I’m not that familiar with how video streaming works. You might try posting on the flexcoders Yahoo group to see if they have any ideas.
Whitefeet–could you put some sample code up and post a pointer to it in a comment so I could take a look? Thanks.
[...] to Chet Haase for the Glow Image component, Narciso Jaramillo for the Reflector component and Sakri Rosenstrom for the Text Effect [...]
Love the component, but I notice when I make the target a panel with a viewstack, the reflection shifts the panel’s position to the top of the browser screen. The panel has its horizontalCenter and verticalCenter both set to 0, and without the reflection it’s centered nicely. When I add either version of the reflection component, the panel is at the top. Any ideas? Thanks!
Great Component. Question, I’m using it on a Canvas containing Images, while the images are scrolling the reflection does not. Is there a trick to fix this? My thought was that if you can drag a component around and the reflection follows then it might do it on a scrolling scenario to.
Thanks!
@Whitefeet
I was having the same problems as you were with the ComboBox, plus buttons flicker as well. To solve this, I set up a timer to reject a reflection update if it happens within a certain amount of milliseconds. I found that 200 ms stopped the problems and is not noticeable.
I’m not sure exactly what is happening, I have both a ComboBox and a Button inside a Canvas which is inside of another Canvas. The first level canvas is the one I am reflecting. It seems like the bitmap rendering is stealing my mouse focus for a split second and then it is recaptured by the Button/ComboBox after the reflector’s UDL has completed. Then, the visual state of the component changes and the reflector’s UDL is called again. Almost looks like the two are competing against each other in an endless loop.
Thanks for the great component NJ.
Hey Narciso, I took your component and added a water ripple effect. Take a look here: http://www.kennydurost.com/sampleApps/reflector/