Little query (Not a problem) :)

Morning :slight_smile:

General question really, obviously refrain from using _root where possible, so confused why “this” doesn’t work in this occasion but _root does.

btn_a.onRelease = function () {
qData[qOrder[qCount]][6] = “A”;
qColor();
temp = “qList”+(qCount+1);
_root[temp].textColor = 0x000000;
}

Here it doesn’t like “this[temp]” but it accepts “_root[temp]”

function qList () {
temp = “btn_qList”+(qCount+2);
this[temp]._alpha = 100;
temp = “qList”+(qCount+2);
if (qData[qOrder[(qCount+1)]][6] == “”) {
this[temp].textColor = 0xFF0000;
}
}

This is on the same frame refering to exactly the same variables, doing as good as exactly the same thing (different colour) but it accepts “this” and “root” to do the same thing :s

PHP man myself and new to AS2(thanks for the help :):slight_smile: ) as someone has to do it at work.

Is there a answer to this or is it me going wrong/AS2?

Thanks,
Oli