You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flex.apache.org by Brian Zaleski <br...@imprimissoft.com> on 2012/05/05 18:34:37 UTC

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

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

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

Re: Button question

Posted by Roland Zwaga <ro...@stackandheap.com>.
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<am...@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 [brian@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 | roland@stackandheap.com | http://www.stackandheap.com

Re: Button question

Posted by Brian Zaleski <br...@imprimissoft.com>.
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<am...@learnatvivid.com>  wrote:
>
>> Use the spark DropDownList<
>> http://help.adobe.com/en_US/flex/using/WSc2368ca491e3ff92-59bf082612135c9e688-7fff.html
>>> .
>> ________________________________________
>> From: Brian Zaleski [brian@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
>>
>>
>> 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
>>
>>
>> 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
>>
>
>


Re: Button question

Posted by Abdul Sattar <sa...@gmail.com>.
More details about PopUpMenuButton.

http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7b20.html


Abdul Sattar
(Director IT & Operations)
0321-6433805
www.powersoft.com.pk

Re: Button question

Posted by Roland Zwaga <ro...@stackandheap.com>.
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 <am...@learnatvivid.com> wrote:

> Use the spark DropDownList<
> http://help.adobe.com/en_US/flex/using/WSc2368ca491e3ff92-59bf082612135c9e688-7fff.html
> >.
> ________________________________________
> From: Brian Zaleski [brian@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
>
>
> 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
>
>
> 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 | roland@stackandheap.com | http://www.stackandheap.com

RE: Button question

Posted by Aaron Miller <am...@learnatvivid.com>.
Use the spark DropDownList<http://help.adobe.com/en_US/flex/using/WSc2368ca491e3ff92-59bf082612135c9e688-7fff.html>.
________________________________________
From: Brian Zaleski [brian@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


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


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

Re: Button question

Posted by Jeffry Houser <je...@dot-com-it.com>.
  I'm not sure if the question is appropriate here; as it doesn't relate 
specifically to the Flex SDK.
  I'm not sure if you want the control that is a mash up of a 
DropDownList and a button or the actual functionality to move things 
between lists.

  It seems that either one would be easy enough to create.

On 5/5/2012 12:43 PM, Brian Zaleski wrote:
> Hi,
>
> One of our designers got hooked on the idea of this button:
>
> 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 
>
>
> 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
>


-- 
Jeffry Houser
Technical Entrepreneur
203-379-0773
--
http://www.flextras.com?c=104
UI Flex Components: Tested! Supported! Ready!
--
http://www.theflexshow.com
http://www.jeffryhouser.com
http://www.asktheflexpert.com
--
Part of the DotComIt Brain Trust


Re: Button question

Posted by Brian Zaleski <br...@imprimissoft.com>.
Hi,

One of our designers got hooked on the idea of this button:

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 


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