Hello,
if certain conditions are set, I’m creating an object. The object appears on the screen and then leaves the screen. I couldn’t find anyway to remove child after it completes its animation.(Using timer seemed a long way) So I decided to remove child while I’m leaving the frame. I tried
if(myChild !== undefined)
{
removeChild(myChild);
}
I tought it would only check myChild if it is not undefined. However, flash doesnt even let me compile using the method above.
It keeps saying access of undefined property myChild. I know it is undefined until it is created but why does flash check inside the if condition, if it is not met:h: