Please help with alpha and sharedObject

What I’m trying to make is an.swf file that contained a movieclip named yellow,when I clicked on it,yellow will disappear,and when I open the .swf again,yellow will still be invisible,here’s my code :


var mySO:SharedObject = SharedObject.getLocal("sftest");

yellow.alpha = mySO.data.poptut;
 
 if (!mySO.data.poptut) {
yellow.alpha = 1;
}


yellow.addEventListener(MouseEvent.CLICK,clickyellow);
function clickyellow (e:MouseEvent):void{
    yellow.alpha = 0;
    mySO.data.poptut = yellow.alpha;
    mySO.data.flush();
    
}

I can’t seem to got it work,the yellow is disappearing but won’t store it into sharedObject,what I got is this:


TypeError: Error #1006: flush is not a function.
    at so_fla::MainTimeline/clickyellow()

:puzzled:

Thank you for your help