Preloading images from GD in AS3

Hi All, i recently wrote a simple image resize script with php and GD2. I want to use it to load thumbs into flash from the original images… its working great, but on my preloader… (ProgressEvent.PROGRESS) i do my math and it gives me “infinity”… is there any way to do this in php where i can still get an accurate preloader in flash?