this is snippet from a working program, hope it helps/
public static function removeUsernameOnClient():void
{
var sharedObject:SharedObject =
SharedObject.getLocal("jewelryaffairuser");
sharedObject.clear();
}
public static function
saveUserTheme(swfThemeName:String):void
{
var sharedObject:SharedObject =
SharedObject.getLocal("jewelryaffairuser");
sharedObject.data.userTheme = swfThemeName;
sharedObject.flush();
}
MayorBrain
--- honoraryvato <[EMAIL PROTECTED]> wrote:
> Have anyone gotten SharedObject to work in Flex 2? I
> copy/paste the
> code straight from the Adobe livedocs and it doesn't
> work. I always
> get three errors. I get "Call to a possibly
> undefined method getLocal
> through a reference with static type Class." when
> the getLocal() is
> called. I get "Call to a possibly undefined method
> getLocal through a
> reference with static type SharedObject." when I
> call flush() and also
> on clear().
>
>
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.
http://tools.search.yahoo.com/newsearch/category.php?category=shopping