Advertisement
neirao

Untitled

Jun 7th, 2015
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.14 KB | None | 0 0
  1.  
  2.         public static function connectPHP(_URL: String) {
  3.  
  4.  
  5.             setPreloadScreen(true); <<<<<<<<<<<<<<<<<<<< ERIC 1 ENVIO
  6.  
  7.             trace("[connectPHP]");
  8.  
  9.             urlPHP = urlHOST + _URL;
  10.             requestPHP = new URLRequest(urlPHP);
  11.             requestPHP.method = URLRequestMethod.POST;
  12.             requestPHP.data = varSEND; //obrigatorio aqui ok   
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.         public function loaderCOMPLETE(e: Event): void {
  21.  
  22.             setPreloadScreen(false); <<<<<<<<<<<<<<<<<<<< ERIC 2 RETORNO
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.         public function loaderIO_ERROR(e: IOErrorEvent): void {
  33.             setPreloadScreen(false); <<<<<<<<<<<<<<<<<<<< ERIC 3 RETORNO
  34.             output("IOErrorEvent:", e);
  35.             //------------------------------------------------------------
  36.             POPUP_MSG("erro acessando o servidor!!\nverifique sua internet!");
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.             //--loginmenu.visibleInputs(false);
  46.             //--loginchangemenu.visibleInputs(false); //senao aparece no stage tambem
  47.             //--visualizarmenu.visibleInputs(false);
  48.         }
  49.         public function loaderSECURITY_ERROR(e: SecurityErrorEvent): void {
  50.             output("SecurityErrorEvent:", e)
  51.         }
  52.         public function loaderHTTP_STATUS(e: HTTPStatusEvent): void {
  53.             output("HTTPStatusEvent:", e)
  54.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement