Optimized AS3 Lightning effect class