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…