this.wheels = 4;
Car.prototype.printNumberOfWheels = Car_printNumberOfWheels
var myCar = new Car();
// alert(myCar.printNumberOfWheels) would alert "4"
How can I call the printNumberOfWheels function in the myCar object from Flex?
The better but more complicated way would be to use java and expose your methods and objects as a web service. Web services are far more complicated and seem outside of the scope of this problem.