Sets flags on this
flags
This function will emit notifications for the changed properties
a Actor
the flags to set