Flex: draggable tool-box button using the directional pop-up button

As promised at the previous post, here is how i used the PopUpButton that can position its pop up.
I have a “tool box” button that can be dragged around, but it is restrained to stick to the borders of the container.
Depending on which side this tool-box-button is residing i determine its pop up opening direction.

Inside the tool-box itself the”full screen”, “legend” and slider works and manipulate the chart.

(i really liked this restrained dragging).

Demo is here (right click for source)
Source is here

Advertisements

2 Responses to Flex: draggable tool-box button using the directional pop-up button

  1. Campbell says:

    Sweet example man, You just need to handle the fullscreen event and attach the toolbox again on enter and exit. The button ends up floating off in space.

  2. shemesh says:

    Campbell,
    you can open a bug to our support team…
    just kiddin’ (myself is the support)…
    i’ll fix it soon.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: