Return-Path: X-Original-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 144D69283 for ; Mon, 7 May 2012 18:00:10 +0000 (UTC) Received: (qmail 74540 invoked by uid 500); 7 May 2012 18:00:09 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 74503 invoked by uid 500); 7 May 2012 18:00:09 -0000 Mailing-List: contact flex-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: flex-dev@incubator.apache.org Delivered-To: mailing list flex-dev@incubator.apache.org Received: (qmail 74495 invoked by uid 99); 7 May 2012 18:00:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 May 2012 18:00:09 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.161.175] (HELO mail-gg0-f175.google.com) (209.85.161.175) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 May 2012 18:00:04 +0000 Received: by ggcy3 with SMTP id y3so1058126ggc.6 for ; Mon, 07 May 2012 10:59:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=37UpY+M/KhtPh2/SKZMCNGRK3P0e8w6+mt/sbXrw7WM=; b=M3kZGus6L6/0Ot46vgp+zQ9ARlgz2Y3E9bBabtVKxh/6lCpSj8PaoU+xe+Z3ZL68j6 3O3IWe0Qve+90cDFMbrtqqj7DwkhHGjjFmihn+BVcqq3b2kH36bxiBfuFEw41RADSeF6 i0tnJdhqLSoWwRuekOI7Qg9TYMdNgCOrfhFd9v1xIlnIGncRNIHotex8dqs+MmRJIn8D 4EPz/9snaPXcC9aj+DZf7T4B5vGju87Uhi8PEhq+2IfMH0x44oEWx372BUa1eJ35SwzS WSu7eJwbhgoQPiJm/fAIy+7LmQQdGLa+rqt1Y4GNFCjcyamhHDzXFfFI/Rjq2NLKekQQ 5D2Q== MIME-Version: 1.0 Received: by 10.50.213.71 with SMTP id nq7mr1387752igc.12.1336413582931; Mon, 07 May 2012 10:59:42 -0700 (PDT) Received: by 10.231.200.201 with HTTP; Mon, 7 May 2012 10:59:42 -0700 (PDT) In-Reply-To: <4FA80BDA.9060809@imprimissoft.com> References: <4FA5569D.6000602@imprimissoft.com> <4FA558B6.1080706@imprimissoft.com> <4FA80BDA.9060809@imprimissoft.com> Date: Mon, 7 May 2012 19:59:42 +0200 Message-ID: Subject: Re: Button question From: Roland Zwaga To: flex-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=14dae9340fabe2379504bf760883 X-Gm-Message-State: ALoCoQl8kmc80N9db/182Alux402KssIm1uLKgUx19BdTZOlh0WUAx8PD2gLChSlMD+r23MD5wfL X-Virus-Checked: Checked by ClamAV on apache.org --14dae9340fabe2379504bf760883 Content-Type: text/plain; charset=ISO-8859-1 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 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> >> 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 --14dae9340fabe2379504bf760883--