I’ve worked out where the problem is, but I don’t know why flash is picking it up as a problem…
I’m looping through an array and checking the elements to see if an element contains this text.
the array is as following
array_container[0] = ‘_A_1’;
array_container[1] = ‘_a_2’;
for(var i = 0;i<_root.array_container.length; i++)
{
lookfor = '_A_1';
current = _root.array_container*;
trace('----'+current+'----'+lookfor+'----');
if(lookfor==current)
{
trace('FOUND '+_root.array_container*);
}
trace(_root.array_container*);
}
i’ve narrowed down the problem to being the variable ‘current’. If I replace the dynamic part to the string ‘_A_1’ it works. That is why I entered the trace just above to see what its is checking against. I can see that they are both the same, but flash thinks otherwise.
Any assistance is greatly appreciated, and thanks in advance for any reply