If the promos code was cash discount, you would change your FF programme to AS. After the ticket issued, CX wouldn't charge you back.
However, if the promos code was getting more CX mileages, you couldn't change your programme to AS. The extra mileages will only be gained after you finish all flights. When you change the FF number, CX will no longer link your CX account and couldn't offer you this promotion.