Dynamic jpeg sliding menu

hi guys… i’m trying to do a sliding menu here…
have a problem with my loaded jpeg properties(dimension)
is there a way to detect the dimension of the loaded jpeg?
cause an empty movieclip has no _width &_height(0) …

here’s the code:

this.createEmptyMovieClip(“container”, 1);
for (i=1; i<=2; i++) {
pic = “assets/photography/pic”+i+".jpg";
container.createEmptyMovieClip(“holder”+i, i);
container[“holder”+i].loadMovie(pic);
[COLOR=red]//here’s the problem[/COLOR]
if (i>1) {
container[“holder”+i]._x = container[“holder”+(i-1)]._x+container[“holder”+(i-1)]._width;
}
}

thank’s…

Well there is a way… But you would have to use php to be able to do it…

It’s a long sought out process and at times can be useless… Of course… You can wait until the image is fully loaded and then worry about it… But other than that… It’s all advanced scripting.

well in my case what is the best solution should i do then??