Draggable Panel (with close button)
I really dig the way Flex Panels look. I’m still fairly new to the whole Flex scene, and I wasn’t sure if it was possible to create a Panel and give it the ability to be dragged around the stage. It kinda resembles a OS window, so it just makes sense to be able to drag it around.
Anyway, I found out Panels are static at first, and I was bummed. Then I found a nice, quick tutorial over at AboutFlex.net that accomplishes exactly what I need. I can see myself using this custom component more often than the normal one.
I get the feeling I might use AboutFlex.net a lot. Its a great resource for Flex beginners.
EDIT (7/17/09): AboutFlex.net went down, along with the tutorial. Here’s my replacement. This is the most stripped-down version that I could put together quickly. It has a close button on the top right. I don’t have a tutorial, but here’s the source:
Tutorial link is broken.
Thanks for the update. Apparently aboutflex.net went down!
Thank you! This code was just what I needed.
this is wonderful
Awesome! just stumbled upon flex couple of hours ago and totally in love with it.
Thanks, that was really nice & helpful.
This is exactly what I needed, you’re a legend!
Excellent work.. This is exactlt whar i needed