Hi,
I just want to check if it is ok to add and remove runtime eventlisteners when app is running, or should I go for another approach?
Joakim [import]uid: 81188 topic_id: 16069 reply_id: 316069[/import]
Hi,
I just want to check if it is ok to add and remove runtime eventlisteners when app is running, or should I go for another approach?
Joakim [import]uid: 81188 topic_id: 16069 reply_id: 316069[/import]
I do.
It should be safe. If your in a part of your app where you don’t need to have something triggered on every frame, why leave the EnterFrame listener running?
[import]uid: 19626 topic_id: 16069 reply_id: 59746[/import]
As Rob said unless it’s being used for something, you should be removing it. Leaving it running when it isn’t needed hogs valuable resources. (Plus you can always re-add it later on when you wish to use it again, if need be.)
Peach
[import]uid: 52491 topic_id: 16069 reply_id: 59861[/import]