basicly i have a scene where id like to check if any of the names in components array hits with positive_mc - hitTest seemed to work fine while inside bracets was just a mc name but when its a string it dont seem to seems to return false… althought names are correct (check the trace output) .
fla can be obtained from :
fiasko.biz/help/index.fla
the code if u know what im dooing wrong already: stop();
all_components_array = [“op1_mc”, “op2_mc”];
/needs a full list of movieClipp names used as components in movie as a array/
check_mc.onRelease = function()
{
trace(“start”);
i = 0;
comarray_max = all_components_array.length
while (comarray_max > i)
{
var newtarget:String = all_components_array*
trace ("mc to be used for test: " + newtarget)
if (positve_mc.hitTest(newtarget))
{
debugarea_text.text += “mc_to hit =” + newtarget + " ";
trace(“ok2”);
} else {
debugarea_text.text += “mc not to hit =” + newtarget + " ";
trace(“noup”);
}
i++;
}
};