Check if movie is in browser cache (Preloading)

[size=3][font=Times New Roman]Hi scripters,[/font][/size]

[font=Times New Roman][size=3] [/size][/font]

[size=3][font=Times New Roman]I am currently working on an advanced preloader, with a preloading animation. It has the following structure:[/font][/size]

[font=Times New Roman][size=3] [/size][/font]

[size=3][font=Times New Roman]-Animation in (preloader shows up)[/font][/size]

[size=3][font=Times New Roman]-Preloading of items in queue(the actual preload of the items)[/font][/size]

[size=3][font=Times New Roman]-Animation out (preloader disappears)[/font][/size]

[font=Times New Roman][size=3] [/size][/font]

[size=3][font=Times New Roman]The problem is as follows: every time an user opens a window in my application it gets the “animation in”. I don’t want this, because the window is the same for every item so a preload when the window opens for the first time is sufficient.[/font][/size]

[font=Times New Roman][size=3] [/size][/font]

[size=3][font=Times New Roman]To accomplish this, I want the preloader to check (before “animation in”) if the swf is loaded in the browser cache. If it is, it can skip the preloading (thus not showing the irritating preloader “animation in”). If it isn’t, the preloading animation should start and load the movie in the cache. Does anyone have a solution for this problem?[/font][/size]

[font=Times New Roman][size=3] [/size][/font]

[size=3][font=Times New Roman]I Already tried to solve this problem with shared objects, but this doesn’t work if the user has flushed the browser cache (because shared objects are located in a different folder than the browser cache).[/font][/size]

[font=Times New Roman][size=3] [/size][/font]

[size=3][font=Times New Roman]Another possibility would be a timer, that checks how long the loading takes for an item. For example: if an item is loaded in less than one second, the “animation in” is not showed. With this construction there is a second problem: The preloader loads the items from a queue, so with 6-7 items the whole process would take up to 7 seconds! [/font][/size]

[font=Times New Roman][size=3] [/size][/font]

[size=3][font=Times New Roman]Does anyone have a solution for this problem.[/font][/size]

[font=Times New Roman][size=3] [/size][/font]

[size=3][font=Times New Roman]Sorry for my bad english [/font][/size]

[font=Times New Roman][size=3] [/size][/font]

[size=3][font=Times New Roman]Thank you in advance[/font][/size]