A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: cache+loadMovie to library+attachMovie

  1. #1
    Junior Member
    Join Date
    Jan 2006
    Posts
    18

    cache+loadMovie to library+attachMovie

    Hi,

    im making a map editor, which loads files through data recieved in xml, and loads the files as selection items in the menu. With this my files get in the cache and then i run the loadClip command again and again for which ever item the user wishes to place on the map. The problem is that there is a very very slight interval in the loading of the placed image, this is due to the execution time it takes to bring the required file from the cache. I wanna know if there is any way I could add the files to my library and then attachMovie them when required instead of going to the cache. Any idea?

    Best Regards
    Ali Kapadia

  2. #2
    Junior Member scudsucker's Avatar
    Join Date
    Feb 2003
    Location
    Cape Town, RSA
    Posts
    1,509
    load them once into their own xml objects, and then use the objects instead of reloading the XML into one object.
    Hariyemadzisawira nhaka yedu! Down the SCUD and win!
    I'm too lazy to read Private Messages.

  3. #3
    Junior Member
    Join Date
    Jan 2006
    Posts
    18
    emmmm, Im sorry i dont understand how exactly, can u please elaborate. Let me explain more. The XML file loaded once is loaded in an XML object already. The XML file contains URL links to the SWF files that are loaded. I get the URL links through XML Object .childnodes and .attributes command.

  4. #4
    Member
    Join Date
    Feb 2006
    Posts
    80
    are you just trying to like basically load text and images from an outside source? i can doo it prety easily with a .php file and some basic html

    joel

  5. #5
    Junior Member
    Join Date
    Jan 2006
    Posts
    18
    no, i have an XML file, that contains all the collection of URLs of the SWF files. It all works fine, there is nothing wrong. Its just that when i load a file that has already been loaded earlier into another movie clip (using loadMovie), there is a slight delay (like 0.5 secs) before the file shows. I know this is because of the time the computer takes to get the file from the cache. But u may also know that if the file was not actually loaded from somewhere else (through loadMovie) and instead if I add the content of that file in my main file's library and use 'attachMovie' to load it, there is no delay at all no matter how many times loaded.

    So thats why I was wondering if there is a way to reduce the time loadMovie takes to bring the file from cache by somehow dynamically adding that file to ur library the first time loadMovie loads it, or maybe some other way to reduce that 0.5 secs.

  6. #6
    Member
    Join Date
    Feb 2006
    Posts
    80
    ah word, you're way beyond me :-(

    Joel

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