You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Justin Mclean (JIRA)" <ji...@apache.org> on 2013/08/27 00:44:53 UTC
[jira] [Updated] (FLEX-33681) ReferenceError 1081 property
"separator"
[ https://issues.apache.org/jira/browse/FLEX-33681?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Justin Mclean updated FLEX-33681:
---------------------------------
Labels: easyfix menu, referencerror, (was: menu, referencerror,)
> ReferenceError 1081 property "separator"
> ----------------------------------------
>
> Key: FLEX-33681
> URL: https://issues.apache.org/jira/browse/FLEX-33681
> Project: Apache Flex
> Issue Type: Bug
> Components: Spark Components
> Affects Versions: Apache Flex 4.10.0
> Environment: Windows
> Reporter: Maxime D.
> Labels: easyfix, menu,, referencerror,
>
> While selecting a menu entry, I got a ReferenceError about the "separator" property which is not found.
> My sample code:
> <?xml version="1.0" encoding="utf-8"?>
> <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
> xmlns:s="library://ns.adobe.com/flex/spark"
> xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
> creationComplete="run();">
> <fx:Script>
> <![CDATA[
> import mx.collections.ArrayList;
>
> import spark.components.Menu;
> import spark.events.MenuEvent;
> public function run():void
> {
> var menu:Menu = new Menu();
> menu.dataProvider = new ArrayList([
> {label: 'coucou', data: 'coucou1'}
> ]);
> /*menu.addEventListener(MenuEvent.SELECTED,
> function (e:MenuEvent) {
> trace(e);
> }
> );*/
> addElement(menu);
> }
> ]]>
> </fx:Script>
> </s:Application>
> The error:
> ReferenceError: Error #1081: La propriété separator est introuvable sur Object et il n'existe pas de valeur par défaut.
> at spark.components::Menu/dispatchEvent()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/experimental/src/spark/components/Menu.as:342]
> at spark.components.supportClasses::ListBase/commitSelection()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as:1671]
> at spark.components::List/commitSelection()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/spark/src/spark/components/List.as:1252]
> at spark.components.supportClasses::ListBase/commitProperties()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/spark/src/spark/components/supportClasses/ListBase.as:1080]
> at spark.components::List/commitProperties()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/spark/src/spark/components/List.as:1147]
> at mx.core::UIComponent/validateProperties()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/framework/src/mx/core/UIComponent.as:8481]
> at spark.components::List/item_mouseDownHandler()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/spark/src/spark/components/List.as:1934]
> at spark.components::Menu/item_mouseDownHandler()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/experimental/src/spark/components/Menu.as:323]
> at flash.events::EventDispatcher/dispatchEventFunction()
> at flash.events::EventDispatcher/dispatchEvent()
> at mx.core::UIComponent/dispatchEvent()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/framework/src/mx/core/UIComponent.as:13412]
> at mx.managers::SystemManager/mouseEventHandler()[/Users/justinmclean/Documents/ApacheFlex4.10/frameworks/projects/framework/src/mx/managers/SystemManager.as:2926]
> Notes:
> - Sorry, I don't know how to change the language of the error message ^^
> - The "Spark: Menu" entry is missing on the "Component/s" liste for creating issue ;)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira