Hello - im stuck on a probably simple problem.
I have an array of images and i wan to populate some holders.
heres the code
this.pArray = new Array(image);
this.pArray = image.split(", ");
total = this.pArray.length;
i = 0;
while (i<28) {
loadMovie(this.pArray*, this.bar.photo* );
i++;
}
The problem is with the “this.bar.photo*” as its identifier is not being updated.
Can anyone see what I am missing?
i assume u have 28 photo movie clips? from photo0 to photo27? if so use this.bar[“photo”+i] to reference your holder movie clips.
yay 700 posts!
YES! Thats the one - cheers mate
Moving on now, how would i approcah a similar problem of attaching a link to a dynamic movie.Its the linker*, and window* areas.
The “link”+i movies are being dynamically created succeessfully, its just getting the dynamic link onto them.
here my code
this.pArray = new Array(image);
this.pArray = image.split(", ");
//this.pArray = split(, );
total = this.pArray.length;
link = link.split(", ");
blank = blank.split(", ");
i = 0;
var xPos = 0;
var yPos = 0;
var xPosl = 0;
var yPosl = 0;
while (i<total) {
tellme = this.pArray;
this.bar.attachMovie("photoHolder", "photo"+i, i, {_x:xPos, _y:yPos});
xPos += this.bar["photo"+i]._width+3;
this.bar.attachMovie("linkage", "link"+i, i+100, {_x:xPosl, _y:yPosl});
xPosl += 106;
loadMovie(this.pArray*, this.bar["photo"+i] );
linker* = link*;
window* = blank*;
if(linker* != "")
{this.bar["link"+i].onRelease = function() {
getURL(linker*, window*);
trace(linker*);
};
}
else{}
i++;
}
this.pArray = new Array(image);
this.pArray = image.split(", ");
//this.pArray = split(, );
total = this.pArray.length;
link = link.split(", ");
blank = blank.split(", ");
i = 0;
var xPos = 0;
var yPos = 0;
var xPosl = 0;
var yPosl = 0;
while (i<total) {
tellme = this.pArray;
this.bar.attachMovie("photoHolder", "photo"+i, i, {_x:xPos, _y:yPos});
xPos += this.bar["photo"+i]._width+3;
this.bar.attachMovie("linkage", "link"+i, i+100, {_x:xPosl, _y:yPosl});
xPosl += 106;
loadMovie(this.pArray*, this.bar["photo"+i] );
this.bar["link"+i].linkVar = link*///or whatever the
this.bar["link"+i].windowVar = blank*
i++;
}
then inside the symbol in the library that you use to attach, the one called “linkage”, put the on(release) code on a button inside it, to call a
getURL(linkVar, windowVar);
easy 
Excellent, thank you so much,
that 1 1/2 days of problems solved in minutes.
Cheers