Hello to all, I'm having some serious problems with
SharedObjects in Flex, when I try to call the method getLocal()
from a SharedObject it shows se following error message:
1061: Call to a possibly undefined method clear through a
reference with static type SharedObject.
Here are the lines that throws the error:
public var sharedObj:SharedObject;
sharedObj = SharedObject.getLocal("myTasks");
I'm using Flex Builder 3 trial, Flash Player 10 ActiveX and
the latest 3.2.0 SDK.
Please anyone has some clue of what may be happening??
You may need to let us see more code, as the error message
indicates that you are making a call to the clear() method, yet I
don't see that. Look for "SharedObject.clear()" somewhere in your
code. It should be "sharedObj .clear()", instead.
I just copied and pasted in a new flex project.
There is a sharedObject.clear() method in the
deleteSavedTasks() function, but it didn't prevented the error... I
don't know if it's about the sdk, the flex IDE, the flash player...