holografix wrote:
>
> Hi
> I think there's a problem with the example in the manual.
>
> public function onComplete( e:Event ):void{
> var params = "Sent to Server";
> connection.call("World.hello", responder, params);
> }
>
> I add a trace in the beginning of this function but it never get executed
> despite the info in the manual
> "In the onComplete function which is run as soon as the construct has
> completed we send ..."
>
> Then I add a new function and named it sendRequest()
> This function is called from the first frame of the movie.
> public function sendRequest()
> {
> var params = "Sent to Server";
> connection.call("World.hello", responder, params);
> }
>
> Now it runs but with error: NetConnection.Call.BadVersion
>
> class World
> {
> /**
> * @param string $name
> * @param string $greeting
> * @return string
> */
> public function hello($name, $greeting = 'Hello')
> {
> // test
> file_put_contents("zend_amf_test.txt", $greeting);
>
>
> return $greeting . ', ' . $name;
> }
> }
> File is created with string "Sent to Server".
>
> I tested this with ZF revision 14543 from trunk, Win Vista 32, Flash CS 4.
>
> Cheers
> holo
>
>
I also have the same problem. How can I solve it?
Joel
--
View this message in context:
http://n4.nabble.com/Zend-Amf-and-Flash-Error-2044-NetConnection-Call-BadVersion-tp658287p964068.html
Sent from the Zend Framework mailing list archive at Nabble.com.