Remoting and Flash MX 2004

I am using Flash MX 2004, to develop a flash movie, which uses flash remoting to connect to a java class on the web server (JRun 4).

I am having a few problems with the java instances. When i go to test my movie using the ctrl enter command, the flash movie uses a old instance of a java class.

For example: if i have a constructor where i set a variable, x to 10. Then in my flash movie i call a method to set it to 5. The first time this movie runs x will go from 10 to 5 when calling the method. But for the second time I run it, the variable will be 5, before I have even called the method. Therefore on the second run, the movie uses the same instance of the java class it did on the first one. This pattern is repeated for 2nd, 3rd, 4th, 5th… runs.

I have tried a aso cache cleaner, that cleans the cache before you run the movie, but no luck.

This problem does not occur when I publish the movie and run it again and again.

Any ideas. This is really starting the fustrate me !!!

Thanks