RESOLVED
Hi,
I’ve been trying to reformat Kirupas XML thumbnail Photogallery and am having a problem with the position of the hit_left object in the scroller. The problem is that hit_left._x != 0 and gets added (as an initial width/position) to the beginning of the thumbnails (See image).
Is the usual way to solve this by creating a movieclip of all the scroller elements, using it to set hit_left._x = 0, and doing a delete onEnterFrame to get at the thumbnails?
UPDATE
Change the following from…
function thumbnails_fn(k) {
thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
[COLOR=Red] target_mc._x = hit_left._x+(target_mc._width+5)*k;[/COLOR]
...
to
function thumbnails_fn(k) {
thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
[COLOR=Red][COLOR=Red]** target_mc._x = ((eval("thumbnail_mc.t"+k)._width+5)*k);**[/COLOR]
[/COLOR] ...