Beware though, its got a nasty bug. (I'll try and create a patch for it
once the JIRA issues have been fully imported and I can see if an issue
already exists)
The bug is:

if you click on a dropdown item (instead of on the button) a button click
event is also dispatched, when in reality it shouldn't. (IMHO, I'd love to
hear counter arguments)

To work around it, in the itemClick handler check for 'popUp.visible ==
true', then you'll know an item in the dropdown has been clicked, and
not simply the button itself.

cheers,

Roland

On 7 May 2012 19:52, Brian Zaleski <br...@imprimissoft.com> wrote:

> Hi,
>
> Yes, this was the exact component. I'd never used it before. Perfect.
>
> Thanks,
>
> Brian
>
> On 05/05/2012 02:34 PM, Roland Zwaga wrote:
>
>> Isn't this just the PopupMenuButton that is already part of spark?
>> Or am I missing something?
>>
>> Roland
>>
>> On 5 May 2012 22:30, Aaron 
>> Miller<amiller@learnatvivid.**com<amil...@learnatvivid.com>>
>>  wrote:
>>
>>  Use the spark DropDownList<
>>> http://help.adobe.com/en_US/**flex/using/WSc2368ca491e3ff92-**
>>> 59bf082612135c9e688-7fff.html<http://help.adobe.com/en_US/flex/using/WSc2368ca491e3ff92-59bf082612135c9e688-7fff.html>
>>>
>>>> .
>>>>
>>> ______________________________**__________
>>> From: Brian Zaleski [br...@imprimissoft.com]
>>> Sent: Saturday, May 05, 2012 9:43 AM
>>> To: flex-dev@incubator.apache.org
>>> Subject: Re: Button question
>>>
>>> Hi,
>>>
>>> One of our designers got hooked on the idea of this button:
>>>
>>>
>>> http://demos.telerik.com/**aspnet-ajax/button/examples/**
>>> splitbutton/defaultcs.aspx<http://demos.telerik.com/aspnet-ajax/button/examples/splitbutton/defaultcs.aspx>
>>>
>>>
>>> If you look at that button, it has some rather odd functionality. I'm
>>> wondering if anyone has built anything like this in Flex.
>>>
>>> I found a reference to this:
>>>
>>>
>>> http://help.adobe.com/en_US/**FlashPlatform/reference/**
>>> actionscript/3/xd/core/axm/**view/components/**AXMSplitActionButton.html<http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/xd/core/axm/view/components/AXMSplitActionButton.html>
>>>
>>>
>>> Which *may* work, given the name, but really don't know.
>>>
>>> The problem with that Ajax button, is that you can't use a click event
>>> on a Flex button, because every time you click the dropdown, well, you
>>> *click* it...there is no way to tell if you are clicking directly on it,
>>> or if you are doing a pull-down.
>>>
>>> TIA,
>>>
>>> Brian Zaleski
>>>
>>>
>>
>>
>


-- 
regards,
Roland

-- 
Roland Zwaga
Senior Consultant | Stack & Heap BVBA

+32 (0)486 16 12 62 | rol...@stackandheap.com | http://www.stackandheap.com

Reply via email to