Welcome, Guest
  • Author Topic: Flash Remoting with AS3 tutorial  (Read 1277 times)

    Nejuf

    • Server what's that
    • *
    • Posts: 2
      • View Profile
      • Email
    Flash Remoting with AS3 tutorial
    « on: 11/13/09, 01:05 »
    I followed the tutorial:

    Flash Remoting with AS3

    By: Jorge Solis

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

    However, when I run the file and click either of the buttons I get this error:

    TypeError: Error #1034: Type Coercion failed: cannot convert Object@e6aa999 to flash.events.Event.

    *The Object@ number changes with each time.

    Even when I use the files provided with the tutorial (I have the semi-colon after "return $data" though)

    I stored the amfphp folder on my server and uploaded SimplePerson.php to services folder of amfphp.  I set "myService.connect("http://noinsuranceclub.com/games/amfphp/gateway.php")" which is the location of the gateway file.  Any assistance would be great, thanks.  :D

    Jorge Solis

    • Global Moderator
    • Systems Administrator
    • *****
    • Posts: 14616
      • View Profile
    Re: Flash Remoting with AS3 tutorial
    « Reply #1 on: 11/13/09, 07:33 »
    Probably some error fires the onFault callback, try modifyng this:

    Code: [Select]
    function onFault(f:Object){
    status_txt.text = "There was a problem: " + f.description
    }

    Note that f argument is now Object instead of Event

    Jorge

    Nejuf

    • Server what's that
    • *
    • Posts: 2
      • View Profile
      • Email
    Re: Flash Remoting with AS3 tutorial
    « Reply #2 on: 11/13/09, 15:52 »
    That worked, thanks.  ;D