SharedObjectBean fails to instantiate flash.net.SharedObject using it's default name and localPath variables

Description

After using SharedObjectBean, I believe that the 'Client Persistence' article (http://swizframework.jira.com/wiki/display/SWIZ/Client+Persistence) isn't consistent with SharedObjectBeanTest. The only way that I can see from Swiz's source on how to instantiate flash.net.SharedObject via SharedObjectBean, would be to set a value for SharedObjectBean's name or localPath variable. SharedObjectBeanTest does this in the Before test method:

[Before]
public function setUp():void
{
_soBean = new SharedObjectBean();
_soBean.name = "SwizTest";
_soBean.clear();
}

...therefore, the test will past. But the 'Client Persistence' article doesn't mention or show the user in code that they need to set the name or localPath variable.

Workaround: Explicitly set the name or localPath variable, to invoke the invalidate method.

Solution: I suppose if SharedObjectBean's invalidate() method is called in it's constructor, it would be the easiest and perhaps best solution.

Environment

Macintosh - OS X, Firefox with FlashPlayer 10.1.102.64

Status

Assignee

ChrisC

Reporter

Marc Kassay

Labels

None

Fix versions

Affects versions

Priority

Minor
Configure