From my main movie, I'm loading another movie that creates a text field using the createTextField command. When I try to format the text field it will not format for some reason. I think it's because of the way I have it referencing the object and the depth level that I have assigned it. The textFields are created to display links loaded from a text file. I'm creating a textFile for each link and assigning each link to it's individual depth level. My guess is that's what causing the problem, but I don't know how to work around that. Any suggestions? Thanks!
height=(150-(10*totalAds))/totalAds
for (var i=1;i<=totalAds;i++){
_root.createTextField("link_"+i,0+i,-10,height*i,50,10);
_root["link_"+i].autoSize=true;
_root["link_"+i].html=true;
_root["link_"+i].htmlText=ad(i); // was displaying italics so I changed my array to () for display purposes.
linkFormat=new TextFormat();
linkFormat.url="asfunction:sendURL,"+i;
linkFormat.underline=true;
linkFormat.color=0x000099;
linkFormat.target="_blank";
linkFormat.font="arial";
linkFormat.size=12;
linkFormat.bullet=true;
_root["link_"+i].setTextFormat(linkFormat);
}
stop();
height=(150-(10*totalAds))/totalAds
for (var i=1;i<=totalAds;i++){
_root.createTextField("link_"+i,0+i,-10,height*i,50,10);
_root["link_"+i].autoSize=true;
_root["link_"+i].html=true;
_root["link_"+i].htmlText=ad(i); // was displaying italics so I changed my array to () for display purposes.
linkFormat=new TextFormat();
linkFormat.url="asfunction:sendURL,"+i;
linkFormat.underline=true;
linkFormat.color=0x000099;
linkFormat.target="_blank";
linkFormat.font="arial";
linkFormat.size=12;
linkFormat.bullet=true;
_root["link_"+i].setTextFormat(linkFormat);
}
stop();