Problem activating

Hello. When I activate an object through a script like this, how can I make sure that all of the object's children are also activated (and vice versa for deactivating it)? Also, how can I make an exception to this (ex: an object has 5 children, and I want to activate 4 of them)? Thanks

if (Genre==1) {A.active=true;};

I posted to your forum thread here.