Skip to content

Instantly share code, notes, and snippets.

@brian428
Created May 11, 2010 03:22
Show Gist options
  • Save brian428/396879 to your computer and use it in GitHub Desktop.
Save brian428/396879 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" />
</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