A Flash Developer Resource Site

Results 1 to 9 of 9

Thread: To anyone who know how to clear memory?

  1. #1
    Junior Member
    Join Date
    Sep 2002
    Posts
    5
    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....

  2. #2
    Wildform Moderator
    Join Date
    Sep 2000
    Posts
    2,070
    Hi.
    Can you just unload the previous video?
    That will clear all the memory.
    jb
    http://www.wildform.com

  3. #3
    Junior Member
    Join Date
    Sep 2002
    Posts
    5

    Thanks jonathan

    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

  4. #4
    Wildform Moderator
    Join Date
    Sep 2000
    Posts
    2,070
    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

  5. #5
    Flash Video Moderator Wheels's Avatar
    Join Date
    Dec 2000
    Location
    Minneapolis
    Posts
    1,590
    Hey Jonathan,

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

    I've tried using:
    Code:
    _level1.clear();
    But end up using unloadMovie(); instead.

    5G

  6. #6
    Wildform Moderator
    Join Date
    Sep 2000
    Posts
    2,070
    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

  7. #7
    Junior Member
    Join Date
    Sep 2002
    Posts
    5
    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

  8. #8
    Senior Member
    Join Date
    Sep 2002
    Posts
    109
    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.



  9. #9
    Wildform Moderator
    Join Date
    Sep 2000
    Posts
    2,070
    elfclub,
    To remove the video from memory use the unload command.
    jb

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center