Live reflection component with a twist!

This is my first foray into the flex world, and I’ve chosen to take some baby steps by extending a component that was published by Narciso Jaramillo over at . As I’ve never published code that I’ve “extended” before, if I’m doing this in a way that would contravene the GPL licence that is attached with the original component I’d really like to know.

[drum roll please….]

Behold, the live reflection component with blur effect slider. The example is published with source – which incidently is an absolutely brilliant way of getting to know Flex.

I think it would be more realistic if the blur started gradually and increased as it went away from the panel. Not sure how I’m going to do that though…

Now to come up with some brilliant visual effect ideas of my own 😉

Please follow and like us:

18 thoughts on “Live reflection component with a twist!”

  1. Hey Jason–this is very cool! The blur makes it look a lot more realistic, actually.

    To make the blur gradate, you could render the full blur into a separate bitmap from the original faded bitmap, then combine it with the faded bitmap using a separate alpha gradient. Might start running into performance issues with that much bitmap manipulation, though…

    As far as the GPL, as long as you publish the source of any modifications you make, you’re fine. The thing that makes GPL’ed code tricky is that you can’t use it in a larger product without also releasing the rest of the product under the GPL. In the future, I plan to use a less restrictive license, but since I started with some GPL’ed code I didn’t have a choice for this one.

  2. Love it! You’re view source isn’t working though. If you could email me the code I’d be a happy chap. Thanks…

  3. Now someone just has to make one that takes things like light source into account when dragging it around, haha. Great work, fun stuff… if only I knew something about Flash/Flex.

  4. Is there a way to make reflection disappear when changing state? I apply reflection to two panels (panel_1 for state A and panel_2 for state B); when application goes from state A to B and then back to state A, the panel_2’s reflection remains visible on the stage. Is this a known problem, or just a mistake of mine?

  5. @DeekBlock – yes I’ve imported my old Flex 2 projects into Flex Builder 3 and the LiveReflection source code still works fine.

    @DeepVoid – Perhaps you can email me the code so i can try and help you out – info At Wrench dot com . au

    (And what’s with all the “Deep” comments lately?!)

  6. I am using this component and I have to say great job. I do have one issue. My users have the ability to change the canvans color. When they do this the reflection doesn’t update. Is there a way I can refresh the reflection when they do change the color?




Leave a Comment