ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] FLASH »P AMFPHP³s½u°ÝÃD

[µo°Ý] FLASH »P AMFPHP³s½u°ÝÃD

½Ð°Ý¤@¤U¦³Ãö©óFLASH »P AMFPHP³s½u°ÝÃD

¼g¤F«Ü²³æªºµ{¦¡¡A¥D­n¬O«ö¤U«ö¶s«á´N¥i¥H±o¨ì¤@­Ó¦r¦ê ¢w¢w

FLASH  CS4:
  1. var connection:NetConnection;
  2. var res:Responder;

  3. log_txt.text = "¿é¤J¤å¦r~";
  4.                
  5. res = new Responder(onResult,onFault);
  6. connection = new NetConnection();
  7. connection.connect("/amfphp/gateway.php");
  8. set_btn.addEventListener(MouseEvent.CLICK,get_name);
  9. function get_name(e:Event){
  10.         connection.call("getUser.getName",res);
  11. }
  12. function onResult(r:Object){log_txt.text = "³sµ²¦¨¥\:" + r as String; }
  13. function onFault(r:Object){log_txt.text = "³sµ²¥¢±Ñ:" + r as String;}
½Æ»s¥N½X
PHP:
  1. class getUser{
  2.         function getName(){
  3.                 return "³o¬O´ú¸Õ­û1¸¹";
  4.         }
  5. }
½Æ»s¥N½X
¨Ï¥ÎAMFPHPªºbrowser´ú¸Õfunction¬O²@µL°ÝÃDªº¡I
¦ý¬O¨Ï¥ÎFLASH³sµ²´N¨S¦³¿ìªk¥¿½T¥X²{§Ú­nªº­È¡I·|Åã¥Ü³sµ²¥¢±Ñ¡C
¦ì¸m¤]½T©w©ñ¸m¥¿½T¤F¡CFLASHªºÀÉ®×½T¹ê¬O©ñ¦bwww¤Uªº¤@­Ó¸ê®Æ§¨¤º¡C


¸g¹L¨ä¥L´ú¸Õ«á¡A¾É¥X³o¼Ë¤l¤@­Óerror¡G
#2126: NetConnection ª«¥ó¥²¶·³s½u¡C

¦ý¬O½T¹ê¬O·ÓµÛ®Ñ¤W½d¨Ò¥h¼gªº¡A¥i§_³Â·Ð¦Ñ®v¤Î¦U¦ì¬°§Ú¸Ñµª©O^^¡AÁÂÁÂ!

¦^´_ 1# nashia

À³¸Ó´N¬O¦ì¸m³]¸m¤£¹ï
  1. connection.connect("/amfphp/gateway.php");
½Æ»s¥N½X
FLASH©ñ¦bwww¸ô®|¤Uªº¸ê®Æ§¨,¨ºAMFPHP§A¬O©ñ¸m¦b­þ­Ó¦ì¸m©O?
¤ß¦w¡A¥­¦w   
µoªí¥ô¦óµL·N¸qªº·PÁ©ÎÄé¤ô¤å³¹¤@«ß¬å,¬Ã±¤±b¸¹,½Ð¸Ô¾\ª©³W!!

TOP

¥»©«³Ì«á¥Ñ nashia ©ó 2010-7-12 14:46 ½s¿è

¦^´_ 2# ¤p»x


¾ã­Óamfphpªº¸ê®Æ§¨³£©ñ¦bwww¤U©O><

TOP

¦^´_  ¤p»x


¾ã­Óamfphpªº¸ê®Æ§¨³£©ñ¦bwww¤U©O>
nashia µoªí©ó 2010-7-12 14:15


§Ú¤]¼g¤F¤@­Ó,´N¨S§A©Ò»¡ªº°ÝÃD,PHPªºÀÉ®×°O±o­n¦s¦¨ANSI®æ¦¡

°ß¤@·Q¨ì¥i¯àªº°ÝÃD´N¬O¨¾¤õÀð,§â¨¾¤õÀðÃö±¼¸Õ¸Õ
¤ß¦w¡A¥­¦w   
µoªí¥ô¦óµL·N¸qªº·PÁ©ÎÄé¤ô¤å³¹¤@«ß¬å,¬Ã±¤±b¸¹,½Ð¸Ô¾\ª©³W!!

TOP

¦^´_ 4# ¤p»x


    ¦¬¨ì !!  §Ú¥h§â¨¾¤õÀðÃö°_¨Ó...!!!!!
    §ÚªºPHPÀÉ®×»Pgateway.php¤ºªº½s½X¥þ³¡´«¦¨BIG5

-----------------------------

    §Ú¤w¸gÃö±¼¨¾¤õÀð¤F¸ò§ïbig5¤F¡AÁÙ¬O¨S¿ìªk¡A·|¤@ª½run ³sµ²¥¢±Ñ©O...   
    ¥¢±Ñªºresponder³o¸Ì·|±o¨ì¤@­Óobject~©Ò¥H³o¬O«ü¦³call¨ìfunction¦ý¬O¨S¦³±o¨ì¥¿½Tªºreturn­È¶Ü?

-------------------------------
    ÁÙ¬O»¡¬OÀô¹Ò°ÝÃD?   ¤£¹L§Ú¹Á¸Õ¥Î¤Fappserv2.5.10¡BIIS5.1¡Bapache2.2.3+php5.2¡A³£¨S¿ìªk©O....(©Ò¥H¨ä¹ê¬O­n­«ÄéXP¶Ü?)

TOP

¦^´_ 5# nashia


    §Ú¬O«ü¦sÀɮ榡­n¥ÎANSI,¸òBIG5¦³¦óÃö«Y?

appserv2.5.10¡BIIS5.1¡Bapache2.2.3+php5.2????????
§@·~¨t²Î¤S¬OXP?????????????


run ³sµ²¥¢±Ñ¬O¦ó³Bµo¥Xªº¿ù»~°T®§,§A¬O¥ÎÂsÄý¾¹³sµ²ºô­¶¬Ý,ÁÙ¬Oª½±µFLASH°»¿ù¬Ý?
§â§AªºFLASH±M®×ÀÉ®×À£ÁY«á¤W¶ÇÅý§Ú¸Õ¸Õ
¤ß¦w¡A¥­¦w   
µoªí¥ô¦óµL·N¸qªº·PÁ©ÎÄé¤ô¤å³¹¤@«ß¬å,¬Ã±¤±b¸¹,½Ð¸Ô¾\ª©³W!!

TOP

connection.connect("/amfphp/gateway.php");
¬O¤£¬O§ï¦¨
connection.connect("http://[©ñ¥D¾÷ip]/[©ñgateway.phpªº¸ô®|]");

TOP

        ÀR«ä¦Û¦b : ¥¬¬I¦p¼½ºØ¡A¥HÅw³ß¤ß´þ¼íºØ¤l¡A¤~·|µoªÞ¡C
ªð¦^¦Cªí ¤W¤@¥DÃD