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:34:00 UTC
[jira] [Comment Edited] (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 edited comment on FLEX-35358 at 9/27/17 6:33 AM:
-----------------------------------------------------------------
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"/>
This result in below error
Main Thread (Suspended: TypeError: Error #1034: Type Coercion failed: cannot convert flash.events::Event@18326831 to mx.events.FlexEvent.)
flash.events::EventDispatcher/dispatchEventFunction [no source]
flash.events::EventDispatcher/dispatchEvent [no source]
mx.core::UIComponent/dispatchEvent
spark.components::ButtonBarButton/set data
spark.components::SkinnableDataContainer/updateRenderer
spark.components.supportClasses::ListBase/updateRenderer
spark.components.supportClasses::ButtonBarBase/updateRenderer
spark.components::DataGroup/setUpItemRenderer
spark.components::DataGroup/http://www.adobe.com/2006/flex/mx/internal::itemAdded
spark.components::DataGroup/createItemRenderers
spark.components::DataGroup/commitProperties
mx.core::UIComponent/validateProperties
mx.managers::LayoutManager/validateProperties
mx.managers::LayoutManager/doPhasedInstantiation
mx.managers::LayoutManager/doPhasedInstantiationCallback
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.
was (Author: razorf80):
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)