Not enogh memory

when I publish my movie I get a message that says:

“error creating flash movie. there was not enough memory available”

I tried increasing the paiging files size and the registry size in windows but that didn’t work. Any ideas or reasons why this is happening and how can i resolve this?