CS4 and CS5 font embedding is different and when creating TextFields dynamically you need to do the code differently in both cases in order to ensure that the font is properly accessed by ActionScript 3.0.

Is there any reason why the way that it worked in CS4 still works in CS5 ?

This happens for someone but in my case it is not working.