Hello all,
I'm new to the attachMovie world and am having trouble adding a unique link to all of the new movies that are created.
I placed comment tags where I am having trouble.
If there is another way of doing this besides the way i'm trying please help me out
PHP Code:
var links=new Array();
links[0]="link1";
links[1]="link2";
etc...
var spacing:Number=13;
for(var i=0;i<test.length;++i){
var name:String="view"+i+"_mc";
var x:Number=i*spacing;
this.view_mc.attachMovie("viewer",name,i);
this.view_mc[name]._x=x;
// THIS DOESN'T WORK
this.view_mc[name].onPress=function(){
// "texto" is a dynamic text box used for testing the script
_root.large_mc.texto=links[i];
}
}
What am I doing wrong or not doing?
Thanks in advance,
Loo





Reply With Quote