Intelegent Preloading

hi,

Can any help me developing logic for intelegent preloading.
By intelegent preloading i mean that, there will be two preloader main preloader and another background preloader

main preloader will actual preloading of swf file in main base file
while the role of background preloader is to get rest of the swf into cash from the server while the user is viewing or performing some exercise on current page.