They both work fine, but
Actionscript Code:
this.forceSmoothing = true
is a simple one line of code that will do the job. just make sure you put it on the onload, other wise it wont work