Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Adobe Flex SDK Previous
-
None
-
None
-
Language Found: English
Description
For PersistenceManager to work, developers must register class aliases for ViewDescriptor and NavigationStack. Since these are private Classes, there is no easy way for a developer to do this in a spark application. PersistenceManager should do this automatically internally before load or save since its required for it to work with any ViewNavigator.
Workaround (if any):
Developer has to write code like this, but automatic imports won't work in Builder since classes are private.
import spark.components.supportClasses.ViewDescriptor;
import spark.components.supportClasses.NavigationStack;
protected function initializeHandler():void
{ // Register the class aliases that will be saved registerClassAlias("ViewDescriptor", ViewDescriptor); registerClassAlias("NavigationStack", NavigationStack); }