PDA

Click to See Complete Forum and Search --> : To anyone who know how to clear memory?



elfclub
09-19-2002, 08:51 AM
To anyone who know how to clear memory before loading VDO..????
I'm on project that using flash on CD-rom. I want to clear all the memory from previous VDO playing before the next VDO will be played..

Thanks
Need Help....

Jonathan_B
09-19-2002, 03:20 PM
Hi.
Can you just unload the previous video?
That will clear all the memory.
jb
http://www.wildform.com

elfclub
09-23-2002, 03:43 AM
thanks for your reply.. I tried to unload previous VDO .
But the promblem still occur. MY CDs had both flash for introduction and VDO at some contents. when I start CD-Rom Flash can played with no problem and then I play VDO. There It can't be played smoothly. I know we should clear Flash from memory before playing VDO..

But I dont know how the clear it.....Thanks you

Jonathan_B
09-23-2002, 01:15 PM
What are the problems you are experiencing.
There are still some bugs in the flash player which affect flash video and audio played from a CD. That may be what you are experiencing.
If you have unloaded the swf's from the player, there is nothing more you can do to remove the file from memory.
What version of the flash player are you using?
jb
http://www.wildform.com

Wheels
09-23-2002, 02:40 PM
Hey Jonathan,

Is there still a problem with the .clear(); call?

I've tried using:


_level1.clear();


But end up using unloadMovie(); instead.

5G

Jonathan_B
09-23-2002, 06:26 PM
Clear won't do that. You need to use unload movie.

But it really sounds like elfclub's problems are related to the Flash 6 CD bug.

jb
http://www.wildform.com

elfclub
09-25-2002, 06:14 AM
Dear Jonathan

Thanks for your reply and what is the command / code
to remove the file from memory.

I'm using Flash version 6 ..
Thanks a million

mulcac
09-25-2002, 10:01 AM
memory management with the Flash player is not at all like it is with Director - memory cannot just be cleared. It is done through the loading and unloading of smaller individual swf's...

Don't quote me on this, but I am pretty sure that in order to play a video - flash has to load the entire file before it can play/display it ( MX). Depending on the size of your video clips- this could be pretty taxing to the poor player ;) It has been reported that in MX - while playing from cd-rom - there is a long lull before it plays - and during this wait the system is pretty much locked.

Here are some suggestions -might be appropriate, might not:

-Try to keep the video clip short and tightly compressed ( using Squeeze - or if QT using Media Cleaner pro)
- keep a lower data bit rate for your video compression
- Create an installer that transfers the files from the cdrom to the hard drive-- that way you are bypassing the whole "accessing the cd-rom" bit. Playback should be a bit smoother.

Jonathan_B
09-25-2002, 01:43 PM
elfclub,
To remove the video from memory use the unload command.
jb