Sets a new value of the active flag. The active flag indicates whether the object is currently an active scene (if true).