Oh ok.
Well, this now becomes a matter of how things are rendered.
DirectX just stores images as just pixels, which is why you usually get a crappier resize.
What flash does is different entirely - flash is a vector-based program. So where DirectX draws lines of pixels, flash draws things such as ovals, rectangles, and lines.
You can see this in alot of flash cartoons - where all edges are well-rounded and don't "blur" with other pixels, because they aren't pixel-based. Vector graphics are object-based, and that's why flash has higher image quality.
Sorry if this is disappointing, but it's the truth.
Hope it helps.