Anybody? Would it just be best for me to load each video into a stream, and push that through to the video object? I really don't understand how to do video stuff in Flash, so any generals on the process it goes through to play a video would be appreciated.
So, I've tried to use videoObject.clear(), to no avail. Is there any way to see what object exactly is sucking extra memory? Perhaps I'm attacking video object for no reason...
EDIT: No, I set the path for the two videos I'm working with to both be the same video file, and then testing switching between the screen saver and the normal video, so that all my other code would run, but not load a new videoObject. It turns out that I notice a small leak (about 5 MB each time I would go from the screen saver to the production move and back--even though they are technically the same video, it would still clear the video object ( via videoObject.clear() ) and load it again, but because it wasn't any different, I didn't lose anything. Is there any way it's caching? Can I stop that from happening?
1 person found this helpful
I have figured it out!
When you switch in and out large video files, it would appear that the garbage collection doen't actually clear it up, becuase it is never triggered, and before it cleans up after the videoDisplay, I'm already out of memory!
So, here's a fix that works: create a Video object, and attach a NetStream to it. Manually reset the NetStream each time you need to change something. I will post the actual code on my other post on this same issue. Hope it proves helpful to somebody at sometime! I would love just a note if it actually did prove helpful to anybody via PM on Adobe.
The other post: http://forums.adobe.com/thread/856919