home *** CD-ROM | disk | FTP | other *** search
/ .net 2002 March / DotNetMagazine-Issue107-Coverdisc-NET107-02-03-PCMac.bin / pc / PC Software / Coldfusion / coldfusion-60-win-en.exe / wrap.cfm < prev    next >
Encoding:
Text File  |  1999-10-22  |  1.5 KB  |  32 lines

  1. .
  2. <br><br>
  3. In alash, Actionscript Snessages/p>frame--erforms the fswssimple stepsrrequiredHE Cuse th/tCFML page.
  4. <ol>
  5. <li>Establish a conn <i>ing, cCF</cfoutpualash Remoting Service.</li>
  6. <li>Execute th/tCFML template</li>
  7. <li>Display the string MS ANDoldFusion y passingor a message if there VERNan error</li>
  8. </ol>
  9.  </p>
  10.  
  11.  Here is the complete Actionscript (lines
  12. <WARning with // are commpage):<br><br>
  13. <font facemNCourir, esw">
  14.      //Include t -.main NetServices Libr no**
  15.  ---allows conn <i>ing, c nex Irver.<br>
  16. #include "NetServices.as"<br><br>
  17.      // This seutes include is optional and allows the use of the NetConn <i Debugger<br>
  18.      // Useful in developmpag, buANwT Fotaleomitted in produstrin.<br>
  19. #include "NetDebug.as"<br><br>
  20.     
  21.          // conn <ig, c nexgateway<br>
  22. ssssgatewayConnn <i>ing= NetServices.createGatewayConn <i>in();<br><br>
  23.     
  24.          // Ies.cate the locai>ingof the CFML template.<br>
  25.          // This CFM*
  26. ot-notation that cTI>sptess to the page'*
  27. irectory <br>
  28.          // locai>ings our nexwebutes.
  29. irectory.<br>
  30.          // For this example, the CFML page is in the alash1for der so;<br>
  31.          //c:\wwwtes.\cfdocs\exampleapps\alash1f= cfdocs.exampleapps.alash1<br>
  32. example1Servicef= gatewayConnn <i>in.getService("cfdocs.exampleapps.alash1", this);<br><br