You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Ridwan Benjamin (JIRA)" <ji...@apache.org> on 2017/09/27 06:33:00 UTC
[jira] [Commented] (FLEX-35358) ButtonBarButton on set data
function need to dispatch FlexEvent dataChange
[ https://issues.apache.org/jira/browse/FLEX-35358?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16182084#comment-16182084 ]
Ridwan Benjamin commented on FLEX-35358:
----------------------------------------
After further investigation. It looks like it's crashing on AlignToolSkin.
For some reason in the mxml below, it's treating dataChange as FlexEvent.
<s:ButtonBarButton skinClass="spark.skins.spark.ButtonBarMiddleButtonSkin" dataChange="toolTip=data.toolTip"/>
It looks like there are some changes when the mxml is converted to actionscript between sdk 4.14 and 4.15. I tried Flex SDK 4.14 it's working but not 4.15 onwards.
> ButtonBarButton on set data function need to dispatch FlexEvent dataChange
> --------------------------------------------------------------------------
>
> Key: FLEX-35358
> URL: https://issues.apache.org/jira/browse/FLEX-35358
> Project: Apache Flex
> Issue Type: Bug
> Components: Spark: ButtonBar
> Affects Versions: Apache Flex 4.16.0
> Reporter: Ridwan Benjamin
> Priority: Critical
> Fix For: Apache Flex 4.16.0
>
>
> Since I've updated to Flex SDK 4.16. I got a crash when using RichTextEditor.
> The issue seems to be that in the class spark.components.ButtonBarButton on set data function, it dispatch dispatchEvent(new Event("dataChange")). It should dispatch FlexEvent instead of Event.
> This cause various class that listen to the FlexEvent.DATA_CHANGE to error because it's expecting it to be FlexEvent class instead of Event class
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)