Solved
Here’s the code:
//SentientBeing-specific functions loop for all sentientBeings
for (var n:int = 0; n < sentientBeings.length; n++)
{
var subject:MovieClip = sentientBeings[n];
setDynamicValues();
updateSentientMovement();
if (shrapContainer.length != 0)
{
updateShrapMovement();
}
}
I’ve defined the variable ‘subject’, yet I get an error saying that the subsequent functions, which use it later, are accessing an undefined property.