I'm looking to optimise the performance of my program.
Off the bat I've set stage quality to medium (if I set it to Low half my movieclips don't render). This helped, but I want more!!!
A hint I've read in the P3D Essentials book is to turn of animated materials when not needed. Fantastic idea, but doesn't explain how.
When I create a material I can set material.animated = false
and that works, but in another function I cannot access the material of my primitives. Something as simple as plane.material.animated = false
returns a null exception. So how do I turn on/off animated materials dynamically on my primitives?