Arghh! General AS question!

Hi all

The “Arghh” above is because Im having probs with some AS, and Im so sure that it is easy, and just beyond my mortal reach. Ive been hacking at it for several hours now :frowning:

 Anyway, Im using TextFields and TextFormat.
 
 In frame 1 of the MC i have:
for (i=1; i<4; i++) {
    	createTextField("streaku"+i,30*i,initial1x,initial1y - i,0,0);
    	createTextField("streakd"+i,31*i,initial1x,initial1y + i,0,0);
    	createTextField("streakl"+i,32*i,initial1x - i,initial1y,0,0);
    	createTextField("streakr"+i,33*i,initial1x + i,initial1y,0,0);
    	
    	["streaku"+i].textColor = 0x000000;
    	["streakd"+i].textColor = 0x000000;
    	["streakl"+i].textColor = 0x000000;
    	["streakr"+i].textColor = 0x000000;
    }
    semphasis1.size = 19;
    semphasis1.font = "Verdana";
    semphasis1.bold = true;
 and in frame 2:
for (i=1; i<4; i++) {
    ["streaku"+i].text = _root.mytext_mc.text1;
    ["streakd"+i].text = _root.mytext_mc.text1;
    ["streakl"+i].text = _root.mytext_mc.text1;
    ["streakr"+i].text = _root.mytext_mc.text1;
    
    ["streaku"+i].autoSize = true;
    ["streakd"+i].autoSize = true;
    ["streakl"+i].autoSize = true;
    ["streakr"+i].autoSize = true;
    
   
    semphasis1 = new TextFormat();
    semphasis1.font = _root.mytext_mc.fontselector.getSelectedItem().label;
    semphasis1.size = _root.mytext_mc.alltextsizecb.getSelectedItem().data;
    
    tempu = new Object("streaku"+i);
    tempd = new Object("streakd"+i);
    templ = new Object("streakl"+i);
    tempr = new Object("streakr"+i);
    this.tempu.setTextFormat(semphasis1);
    this.tempd.setTextFormat(semphasis1);
    this.templ.setTextFormat(semphasis1);
    this.tempr.setTextFormat(semphasis1);
    }

//with frame 3 as gotoAndPlay(2);

Hopefully the code isn’t too disjointed. What Im trying to achieve is placing a “stroke” around a TextField that I have already generated. To do this, Im placing identical versions of that TextField at 90, 180, 270 and 360 degrees, offset by i pixels. If I want a 3 pixel thick stroke, i = 3.

Anyway, I think my major problem is in how I denote concatenation of variables/objects - Im assuming that we have to write it in some format as “streaku” + i, but this is where Im coming unstuck.

Any help would be greatfully appreciated.

Ta!

Bannerz