actionscript 3 - AS3 Setting Visible Property of MovieClips -
can set "visible" property of movie clip every frame or should check current state of "visible" property decide if needs updated?
is setting "visible" property same value cheap or not? please provide source.
it doesn't matter.
the visible
property flag set , read next time displaylist renders. updating value doesn't other set internal property used drawing object value supply. can modify value of visible
multiple times each frame , perform same.
basically, when flash runs on of displayobjects have added displaylist, checks collection of flags , values each has, x
, y
, alpha
, visible
. uses these values determine drawing object. when make object not visible, happens flash skip object , not attempt draw it.
for tidiness, stick not having if
.
Comments
Post a Comment