If you are connecting from an international flight to another international flight, generally you don't have to collect your bags. If you are transferring from CX to AA, things might be a bit different specially if you have to clear US customs in between. You have to claim your bags and then clear US immigration and customs before proceeding to your AA flight.