|
-
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
-
Junior Member
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.
-
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.
-
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
-
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.
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|