actionscript 3 - dispatchEvent or checking variable every frame? What's better in a simple parent-child-relationship? -
say have parent- , child-object. @ point variable (boolean) in child changes , parent needs notice. now, performance-wise cheaper let child dispatch event once variable has changed, or have parent check childs variable every frame in existing enterframeeventhandler?
it right. event on loop check. event better callback. event generation heavy. if variable or whatever changes quite often, create new event instance every time change happens.
rob penner wrode library signals because of problem:
Comments
Post a Comment