Open ServiceOrders.fla and insert the following code in the Actions window:
// This imports our class file and provides better organization. import com.trioMotor.ServiceOrders /* You will need replace this string with your own default gateway. If you are using the standalone server use your web root: var path:String = "http://<your web root>/flashservices/gateway"; */ var path:String = "http://localhost/flashservices/gateway"; /* Create a new instance of ServiceOrders and pass all the references of the components that were in your view. */ var myServiceOrder:ServiceOrders = new ServiceOrders( path, statusCodes, servOrdersList, license_txt, submit);
Save and test your application: