Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save srohde/464600 to your computer and use it in GitHub Desktop.
Save srohde/464600 to your computer and use it in GitHub Desktop.
<swiz:BeanProvider
xmlns:swiz="http://swiz.swizframework.org"
xmlns:storage="org.swizframework.storage.*">
<storage:SharedObjectBean id="soBean" name="myName" />
</swiz:BeanProvider>
[Inject]
public var so:ISharedObjectBean;
[Bindable]
public function get appIndex():int
{
// the second parameter is the initial value
return so.getInt("appIndex", 0);
}
public function set appIndex(index:int):void
{
so.setInt("appIndex", index);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment