views:

85

answers:

3

If I have a MovieClip with its "visible" property set to "false", would it aid performance to "stop()" its timeline? Or will that have no effect, since its not being rendered, anyway?

A: 
lewiguez
The person who ask didn't say it was a video - just a MovieClip.
liquidleaf
@luquidleaf Ah. You're right. I read that wrong :)
lewiguez
A: 

If you have actions present on the MovieClip's timeline, stopping it would have a minor savings on processor (even an invisible movieclip can be processing frame actions).

I don't think there would be much difference if the MovieClip is simple (graphics or vector animation) doesn't have a lot of code associated with it.

liquidleaf
+3  A: 

By setting the visible property to false Flash will not render the movieclip. Depending on how many movieclips we're talking about this can have a significant impact on the performance of your swf. However, that's only part of it... if you have code executing inside of the movieclip (i.e. loops, event listeners, etc) then setting its visible property will do nothing to keep that code from executing. Again, depending on how many movieclips we're talking about it will likely be in your interest to manage any code that exists inside the movieclip carefully (i.e. don't execute code unless it needs to be). Good luck!

heavilyinvolved