Home > flex > Draggable Panel (with close button)

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 tutorialtutorial 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:

(Either JavaScript is not active or you are using an old version of Adobe Flash Player. Please install the newest Flash Player.)

  1. Drew
    July 8th, 2009 at 13:23 | #1

    Tutorial link is broken.

  2. July 8th, 2009 at 14:58 | #2

    Thanks for the update. Apparently aboutflex.net went down!

  3. September 4th, 2009 at 16:46 | #3

    Thank you! This code was just what I needed.

  4. Kong
    November 14th, 2009 at 04:28 | #4

    this is wonderful

  5. March 10th, 2010 at 18:01 | #5

    Awesome! just stumbled upon flex couple of hours ago and totally in love with it. :)

  6. May 12th, 2010 at 01:51 | #6

    Thanks, that was really nice & helpful.

  7. Anonymous
    November 4th, 2010 at 20:54 | #7

    This is exactly what I needed, you’re a legend!

  8. December 10th, 2010 at 04:18 | #8

    Excellent work.. This is exactlt whar i needed

  9. Kasteelpiraat
    July 18th, 2013 at 04:39 | #9

    Thanks !!!

  10. February 8th, 2015 at 20:26 | #10

    Los graduados y licenciados en SicologĂ­a por la Universidad
    de Salamanca cumplen el requisito de tener noventa créditos sanitarios.

  1. No trackbacks yet.