Use Number() to convert string to a float number
package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ trace(Number("3.14")); // 3.14 trace(Number("3.14 has a posse")); // NaN } } }