# Dynamic jpeg sliding menu

**URL:** https://forum.kirupa.com/t/dynamic-jpeg-sliding-menu/16115
**Category:** Uncategorized
**Created:** [March 21, 2003, 2:14am UTC](https://forum.kirupa.com/t/dynamic-jpeg-sliding-menu/16115 "2003-03-21T02:14:33Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![indojepang](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/indojepang/32/39_2.png) [@indojepang](https://forum.kirupa.com/u/indojepang)
#### Post date: [March 21, 2003, 2:14am UTC](https://forum.kirupa.com/t/dynamic-jpeg-sliding-menu/16115/1 "2003-03-21T02:14:33Z")

</div>

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…

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 21, 2003, 3:44am UTC](https://forum.kirupa.com/t/dynamic-jpeg-sliding-menu/16115/2 "2003-03-21T03:44:34Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [March 21, 2003, 7:46am UTC](https://forum.kirupa.com/t/dynamic-jpeg-sliding-menu/16115/3 "2003-03-21T07:46:54Z")

</div>

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