Hi, i posted yesterday about dynamic thumbnail sizes for an xml gallery.
Everything worked (thanks to help from Graphixboy) but i ran into a problem that seems easy but is alluding me.
I have an mc that loads thumbnail images which are then displayed sequentially in a scroller.
I have an array that contains the individual widths of the images and i can get them correlating to the specific images. However:
when i try to change the hit size of the images (controlled by a hitSize mc which is just a red box) it won’t change the ._width of the hitSize mc according to the variable.
This is what i can do:
hitSize._width = 100;
(which works)
This what i have:
hitwidth = _root.projectsB[this.menuNum]; //this is the individual width of the image being loaded
hitwidth = this.hitSize._width;
if i trace(hitwidth); i get the correct number, but the above code won’t change the size of the mc
essentially i want the container of the images to have different widths according to the values i specified in the array. so hitSize._width = array value.
The code in the original post should work but i don’t know why…