[ 
https://issues.apache.org/jira/browse/FLEX-34108?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13909925#comment-13909925
 ] 

Justin Mclean commented on FLEX-34108:
--------------------------------------

Confirmed:

{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" 
initialize="init(event)">
        <fx:Script>
                <![CDATA[
                        import mx.collections.ArrayCollection;
                        import mx.events.FlexEvent;
                        
                        protected function init(event:FlexEvent):void
                        {
                                var ac:ArrayCollection = new 
ArrayCollection([1,2,3,4]);
                                var obj:Object = {array:ac};
                                JSON.stringify(obj);
                        }
                        
                ]]>
        </fx:Script>
        
</s:Application>
{code}

> JSON.stringify and arraycollection
> ----------------------------------
>
>                 Key: FLEX-34108
>                 URL: https://issues.apache.org/jira/browse/FLEX-34108
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: .Unspecified - Framework
>    Affects Versions: Apache Flex 4.11.0
>         Environment: windows7, flashbuilder 4.7
>            Reporter: Fabiano Citrone
>              Labels: easytest
>
> When JSON.stringify(object) used for an object which contains an attribute of 
> type "ArrayCollection", it throws an error.
> Error: Unknown Property: 'dispatchResetEvent'.
>       at 
> mx.collections::ListCollectionView/http://www.adobe.com/2006/actionscript/flash/proxy::getProperty()[/Users/justinmclean/Documents/ApacheFlex4.11.0/frameworks/projects/framework/src/mx/collections/ListCollectionView.as:940]
>       at JSON$/stringifySpecializedToString()
>       at JSON$/stringify()



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to