I consider myself a logical person. AS3 is not logical. AS3 is a ridiculous nonsensical tromp through the looking glasses of a huge, angry nerd with self-esteem issues. Having said that, I realize that attachMovie is now dead. Take something that was once so simple, and improve it by making it unnecessarily complex and irrational so that flash newbies will never dare to set foot in our domain.

addChild("class"); you say?
Fascinating.

Code:
	// ASSIGN VALUES TO SONG BUTTONS
	for (var a=0; a<=11; a++) {
		if (a < songArray[currentCat].length-songPointer) {
			root["txtsong"+a].text = songArray[currentCat][songPointer+a][0];
			if (songArray[currentCat][songPointer+a][2] == true) {
				root["NEWSIGN"+a]:new_mc = new new_mc();
				addChild(root["NEWSIGN"+a]);
				root["NEWSIGN"+a].x = root["btnsong"+a].x+100;
				root["NEWSIGN"+a].y = root["btnsong"+a].y-20;
			}
		} else {
			root["txtsong"+a].text = "";
		}
	}
My code brings me errors.
Namely, that I must use a simple identifier for:
addChild(root["NEWSIGN"+a])

I'd actually rather say:
root["songbtn"+a].addChild(NEWSIGN)
root["songbtn"+a].NEWSIGN.x = whatever;
..etc..

but it tells me that that thing doesn't understand addChild.
addChild only likes root.


This is worse than congress.