The absolute value gives always a positive number.
If a is negative, then a|x| is negative and |ax| is positive.
Therefore, the graph of y=a|x| won't be the same as the graph of y=|ax|.
Another way to see it, is by using the property:
![\mleft|ax\mright|=\mleft|a\mright|\cdot\mleft|x\mright|](https://img.qammunity.org/2023/formulas/mathematics/college/f0w83kn9vhddezt8htvkztzo1l4d958lb8.png)
Since a is negative, then |a| = -a. So, |ax| = -a|x|, which is clearly different from a|x|.