Recently I was trying to get the height and width of an image loaded into Flash but kept getting zero for height and width. Turns out I was getting the dimensions before the picture was completely loaded .
Instead, I used the movieClipLoader object to load the picture. Then I could use a listener object to detect the onLoadInit event of the movieClipLoader object so that I could get the dimensions after the picture was completely loaded....
Leave a comment: