flex - Flash Player 10.1 crash on shared object access -
Since my Flash Player plugin is updated from 10 to 10.1, when I reach the shared object, The debugger of the flex builder is showing, and so prints a stack trace like this:
to call it SharedObject.getLocal ("someString")
to call Is I / path / to / my / MyClass.as: 27] (...) is one For the string another time , though it does not always crash, using the other browser on the same machine (Flex Builder is not configured as a preferred debugging browser), the flash player is silent lives. The code is wrapped in the try / catch (error)
block which does not catch this error. I'm using Flex SDK 3.5 and Flex Builder 3 on Max OS X 10.6.3. Has anyone seen this?
Thanks, Simon
Here's a job:
package scolab.core {import flash.net.SharedObject; / ** * Flash 10.1 imposes a dirty bug that crashes FlashPlayer and the browser when a shared object is used continuously * We work around this problem with a fixed accessor which ensures that The shared object is used only once and is kept in the cache. * Public Square SharedObjectManager {Private Static Key Cache: Object = New Object (): Public static function getLocal (name: string, localPath: String = null, secure: boolean = false): SharedObject {if (cache.hasOwnProperty (name + ":" + Secure ") {return cache [name:": "+ Local Path +": "+ secure]} and {cache [name +": "+ Local Path +": "+ secure] Returns cache [name + ":" + Local path + ":" + secure]}}}
Comments
Post a Comment