Welcome to FT.
Well, of course you don't get the miles, and there should be no mystery. All you have to do is look at
www.AA.com, the Cathay link
https://www.aa.com/i18n/AAdvantage/e...hayPacific.jsp
where it says:
Originally Posted by AA.com
Earn miles when flying on Cathay Pacific marketed and operated flights for travel on an eligible published fare ticket. Miles are also earned on Cathay Pacific codeshare flights operated by oneworld carriers and oneworld affiliates.
The the one affiliate listed there is Dragon Air. So, this states very clearly that a CX codeshare operated by AS (non-oneworld) is not eligible.
Cheers.