# Very curious singleton problem (cache?)

**URL:** <https://forum.kirupa.com/t/very-curious-singleton-problem-cache/309333>\
**Category:** flash\
**Created:** [May 12, 2010, 12:46pm UTC](https://forum.kirupa.com/t/very-curious-singleton-problem-cache/309333 "2010-05-12T12:46:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![generator85](https://avatars.discourse-cdn.com/v4/letter/g/bb73d2/32.png) [@generator85](https://forum.kirupa.com/u/generator85)\
**Post date:** [May 12, 2010, 12:46pm UTC](https://forum.kirupa.com/t/very-curious-singleton-problem-cache/309333/1 "2010-05-12T12:46:36Z")

</div>

I’ve got a flash game that gets loaded through a preloader.swf. But something curious started happening with this singleton I was using.

Whenever I change something in this singleton everything is working fine when testing. But as soon as I start movie.swf through preloader.swf the changes I’ve made in the singleton don’t show. Changing code in any other class works fine though.

The only way I can make sure the changes go through is by re-compiling the preloader!

I’m completely clueless about what could be causing this.
