rspec/rules/S1982/rule.adoc
Arseniy Zaostrovnykh 7ca29f686f Force linebreaks
2021-02-02 15:02:10 +01:00

15 lines
521 B
Plaintext

The ``++onEnterFrame++`` event handler is continually invoked at the frame rate of the SWF file, regardless of which individual movie frame it is set for. Having too many ``++onEnterFrame++`` handlers can seriously degrade performance.
If the use of this event handler cannot be avoided entirely, then it should be created as close to its use as possible, and then destroyed as soon as possible afterward.
== Noncompliant Code Example
----
movieClip.onEnterFrame = function () { // Noncompliant
// ...
}
----