Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 230BC200A5B for ; Wed, 25 May 2016 14:24:37 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 221AB160A29; Wed, 25 May 2016 12:24:37 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 66131160A18 for ; Wed, 25 May 2016 14:24:36 +0200 (CEST) Received: (qmail 94473 invoked by uid 500); 25 May 2016 12:24:21 -0000 Mailing-List: contact users-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@flex.apache.org Delivered-To: mailing list users@flex.apache.org Received: (qmail 91942 invoked by uid 99); 25 May 2016 12:19:38 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 May 2016 12:19:38 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 39267C2958 for ; Wed, 25 May 2016 12:15:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.179 X-Spam-Level: * X-Spam-Status: No, score=1.179 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id aqLhIUO73R-z for ; Wed, 25 May 2016 12:15:25 +0000 (UTC) Received: from mail-vk0-f42.google.com (mail-vk0-f42.google.com [209.85.213.42]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 146595FAD2 for ; Wed, 25 May 2016 12:15:24 +0000 (UTC) Received: by mail-vk0-f42.google.com with SMTP id c189so61306576vkb.1 for ; Wed, 25 May 2016 05:15:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=MNIYtT3HfG3TUgT1wYXmg5c1eXFhDtTKnF0mX3L79TY=; b=cHYBnWOjZcVriBhQwS0USKvU9l52EgesBC6GzbMVxynt+atJXSFZywrFGUj7VDvOoy Yk1XaYqv9NyaB1Y5z7Hxjq7gBR/ex/TF0LWbYKCWu6iMxPQ0WdePBe9TJ9orcQXJ7RGR 1dAzVksZNGrABrCONBSWRyB1UylTCyZJiymbrMhJq+uS7VDm+L10zt4CUBCdnKql+mBD wOZSyCxvwzmIRf+nXrvLPmFB0bkgut+2DcI6ZGFR8KYjXTgv69V5Uy7Ygbnz2A6LpEgy jxn1mjDiKD02UuwAjsXXXfKRmkKycsSxc5rOB0OhVhrEO33iqBkiLfJ6X2BnQrUqSslK UAeg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=MNIYtT3HfG3TUgT1wYXmg5c1eXFhDtTKnF0mX3L79TY=; b=Zr3EGhvW5ITOmIHKfuB/QjC80lkwuT6njeBpEqx+WCLZxk5WlvWD2/KhfdGe630oL+ dM8iV/MXKRvITA471TI0LkpYy1e3hXEtq81YIEthjsoFTtut3VX3RJ3wlEqMBt3eWx1/ SYNrDcm1L0w4E8fl11z7nhYcxoIbWxsZSS9PcT6brcoEXVQCOmMtPklwXj0JN37xVCQf /Gw8qfeKuF7fXIefZ/9/KBX7NfVd35KKNS/ejL82WMHxp4Cc2+KGTHQi5jour8+6Gz3a UHq5aZSNuwUoGMpKx/7TS0zeMx3fAlOMverB4mmoG72S1C8FzIUK0Bmw9rWad3jsmo9C DnPQ== X-Gm-Message-State: ALyK8tLqyVpsDK5WFgukYpKea1scO4EiZ65AptFqNOLWGpaFwjiet62VjpnMVwnN1oLAo37KX6AROs1VCVKizw== X-Received: by 10.31.226.7 with SMTP id z7mr1832927vkg.138.1464178518512; Wed, 25 May 2016 05:15:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.159.39.194 with HTTP; Wed, 25 May 2016 05:14:49 -0700 (PDT) In-Reply-To: References: From: jude Date: Wed, 25 May 2016 07:14:49 -0500 Message-ID: Subject: Re: RTE on RTE To: "users@flex.apache.org" Content-Type: multipart/alternative; boundary=001a114df31c7bdabe0533a9a09f archived-at: Wed, 25 May 2016 12:24:37 -0000 --001a114df31c7bdabe0533a9a09f Content-Type: text/plain; charset=UTF-8 As a workaround you can remove the dataChange event listeners on each of the ButtonBarButtons in spark.skins.richTextEditorClasses.AlignToolSkin class. On Wed, May 25, 2016 at 6:59 AM, jude wrote: > It looks that way. AlignTool is based on ButtonBarButton. When the > dataProvider is set it dispatches a "dataChange" event type as a regular > Event instead of a FlexEvent as you said. > > The ButtonBarButton class expects it as a FlexEvent: > > [Event(name="dataChange", type="mx.events.FlexEvent")] > > So the ButtonBarButton data setter should be: > > dispatchEvent(new FlexEvent(FlexEvent.DATA_CHANGE)); > > instead of the current: > > dispatchEvent(new Event("dataChange")); > > I'll update the issue in the bug base. > > > On Tue, May 24, 2016 at 11:10 AM, Alex Harui wrote: > >> Is there a ButtonBarButton involved? It appears that it dispatches a >> dataChange event as a regular Event and not a FlexEvent. Other code might >> be expecting a FlexEvent. >> >> -Alex >> >> On 5/24/16, 8:25 AM, "jude" wrote: >> >> >I'm getting a run time error on the experimental rich text editor. I've >> >made a simple test case and pasted the code >> > >> >and >> >error here. I'm using 4.15. >> > >> ><?xml version="1.0" encoding="utf-8"?> >> ><s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009" >> > xmlns:s="library://ns.adobe.com/flex/spark" >> > xmlns:mx="library://ns.adobe.com/flex/mx" >> > xmlns:ns="http://flex.apache.org/experimental/ns" >> > > >> > >> > <ns:RichTextEditor verticalCenter="0" horizontalCenter="0" >> >width="300" height="300"/> >> > >> ></s:WindowedApplication> >> > >> >Error: >> > >> >TypeError: Error #1034: Type Coercion failed: cannot convert >> >flash.events::Event@25e81737bbc9 to mx.events.FlexEvent. >> > at flash.events::EventDispatcher/dispatchEventFunction() >> >> > --001a114df31c7bdabe0533a9a09f--