can't typecast a parent object with adobe animate camera active
Hello, the following code will run when I am using a VCam for a camera. However, if i try bringing in the animate camera, the code breaks and gives me an error. What is causing the issue?
(MovieClip)(parent.getChildByName("minecraft_particles_bottom"))
.addChild(newParticle);
ypeError: Error #1009: Cannot access a property or method of a null object reference.
at movieclipASissue_Scene1_fla::MinecraftPotionParticleCreateArea_4_0_2/createParticle()
at movieclipASissue_Scene1_fla::MinecraftPotionParticleCreateArea_4_0_2/onEnterFrame()
