# AS2.0 - SharedObject - Cannot get flush to return false

**URL:** <https://forum.kirupa.com/t/as2-0-sharedobject-cannot-get-flush-to-return-false/225390>\
**Category:** flash\
**Created:** [May 11, 2007, 8:45am UTC](https://forum.kirupa.com/t/as2-0-sharedobject-cannot-get-flush-to-return-false/225390 "2007-05-11T08:45:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![osc23](https://avatars.discourse-cdn.com/v4/letter/o/22d042/32.png) [@osc23](https://forum.kirupa.com/u/osc23)\
**Post date:** [May 11, 2007, 8:45am UTC](https://forum.kirupa.com/t/as2-0-sharedobject-cannot-get-flush-to-return-false/225390/1 "2007-05-11T08:45:29Z")

</div>

Hello all,

I have set the amount of data that my SharedObject can store to none, and Never Ask Again. But I cannot get SharedObject.flush() to return false as per the help system. Settings changed here:

[http://www.macromedia.com/support/documentation/en/flashplayer/help/settings\_manager03.html](http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager03.html)

```auto

stop();

var so:SharedObject = SharedObject.getLocal("myObj", "/");

// trap SharedObject memory limit set to 0

var test = so.flush();

if (test == false){
    getURL("javascript:alert('Memory set to 0');");
}

trace (test); // true

```

Interestingly, I’ve tried passing bytes to the flush call. flush(1024) returns true, flush(2048) returns true while flush(10000000000) does actually return false!

Any ideas? I’d like to get this up today…

Osc23
