Waiting 'til a picture is loaded, before starting a script








This affiliates an onload event with the Image object, so that the motion begins only after the picture file has finished loading into the Image:
MyPicture.onload=StartUp;