PDA

View Full Version : Align center image loaded from text file


beedie
06-20-2008, 05:21 PM
I am loading images to my Flash movie from a textfile that is updated just before loading. Is there a way to center the image in my image holder mc once the image has downloaded? It essentially means repositioning a movie clip after flash has loaded as the image is the last thing to arrive.

gnomeontherun
06-20-2008, 05:48 PM
How are you loading the image?

You will have to add some kind of listener for the completion of the image loading, and then you can do some math to get the _x and _y properties of the movieClip to reposition.