Accessibility

Trio Motor Sample Article

 

Building the Trio Service Manager: The Work Order Status Widget in Flash MX 2004


Table of Contents

Importing and Creating a New Instance of Your Class

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:

  1. Save ServiceOrders.fla.
  2. Export the SWF movie.
  3. Double-click the SWF file to test it.
  4. Browse the application that you have just built at: http://<your_web_root>/mx2004tutorial/index.cfm.