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

Carol Frampton commented on FLEX-33365:
---------------------------------------

This is definitely a Flash Chrome issue, not a Flex issue.  Here's the code 
that demonstrates the issue.  There seem to be no locales on Chrome.  The new 
on the Collator blows up with the TypeError: Error #2007 error.  debug is just 
a TextArea.

           private function initApp():void
            {
                var locales:Vector.<String> = 
Collator.getAvailableLocaleIDNames();
                debug.appendText("locales length is " + locales.length + "\n");
                debug.appendText(locales.toString() + "\n");
                
                try
                {
                    var sortingCollator:Collator =
                        new flash.globalization.Collator("en", 
CollatorMode.SORTING);                    
                }
                catch(e:Error)
                {
                    debug.appendText("new Collator : error = " + e.toString());
                }
            }

The same code run on firefox with language=French dumps out 322 locales.

I will try to find the appropriate Flash bug base and enter this issue (or you 
can if you prefer).
                
> spark.collections.Sort crashes on PepperFlash (Chrome) on Mac
> -------------------------------------------------------------
>
>                 Key: FLEX-33365
>                 URL: https://issues.apache.org/jira/browse/FLEX-33365
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Spark: Sort and SortField
>         Environment: Mac OS Snow Leopard 10.6.8
> Google Chrome 24.0.1312.56
> PepperFlash 11.5.31.137
>            Reporter: Aurélien Baroiller
>
> When sorting an ArrayCollection based on an string property using the 
> spark.collections.Sort class, it throws a TypeError #2007. 
> It works when using the mx.collections.Sort instead of 
> spark.collections.Sort. 
> It works when sorting on a numeric property (even with 
> spark.collections.Sort). 
> The only case where it crashes is : 
> - Mac Os, 
> - Google Chrome with PepperFlash 
> - sorting on string property. 
> All other cases works : 
> - Windows (even with PepperFlash on Chrome), 
> - All browsers (even Chrome on Mac but without PepperFlash) 
> - sorting on numeric property (even Chrome on Mac with PepperFlash)
> Here is an example with source : http://www.odandb.com/flex/BugSparkSort/
> EDIT : It also crashes on Linux with Flash Player 11.2.202.261

--
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

Reply via email to