|
NAMEAMF::Perl - Flash Remoting in Perl Translated from PHP Remoting v. 0.5b from the -PHP project.Main gateway class. This is always the file you call from flash remoting-enabled server scripts. SYNOPSISThis code should be present in your AMF::Perl gateway script, the one called by the Flash client.To enable the client to call method bar() under service Foo, make sure MyCLass has a method called bar() and register an instance of your class. my $object = new MyClass(); my $gateway = AMF::Perl->new; $gateway->registerService("Foo",$object); $gateway->service(); Or, if you have many services to register, create a package corresponding to each service and put them into a separate directory. Then register this directory name. In the example below directory "services" may contain Foo.pm, Bar.pm etc. Therefore, services Foo and Bar are available. However, these packages must have a function called methodTable returning the names and descriptions of all possible methods to invoke. See the documentation and examples for details. my $gateway = AMF::Perl->new; $gateway->setBaseClassPath('./services'); $gateway->service(); ABSTRACTMacromedia Flash Remoting server-side support. DESCRIPTIONThis file accepts the data and deserializes it using the InputStream and Deserializer classes. Then the gateway builds the executive class which then loads the targeted class file and executes the targeted method via flash remoting. After the target uri executes the the gateway determines the data type of the data and serializes and returns the data back to the client. EXPORTNone by default.SEE ALSOThere is a mailing list for AMF::Perl. You can subscribe here: http://lists.sourceforge.net/lists/listinfo/flaph-generalThe web page for the package is at: http://www.simonf.com/flap AUTHORVsevolod (Simon) Ilyushchenko, simonf@simonf.comCOPYRIGHT AND LICENSECopyright (c) 2003 by Vsevolod (Simon) Ilyushchenko. All rights reserved.This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The code is based on the -PHP project (http://amfphp.sourceforge.net/) ORIGINAL PHP Remoting CONTRIBUTORS Musicman - original design Justin - gateway architecture, class structure, datatype io additions John Cowen - datatype io additions, class structure Klaasjan Tukker - modifications, check routines, and register-framework CHANGESSun Jul 11 18:45:40 EDT 2004
Sun Jun 20 13:32:31 EDT 2004
Thu Apr 29 17:20:07 EDT 2004
Sat Apr 24 20:41:10 EDT 2004
Sat Mar 13 16:25:00 EST 2004
Sat Aug 2 14:01:15 EDT 2003
Sun Jul 20 19:27:44 EDT 2003
Wed Apr 23 19:22:56 EDT 2003
Sun Mar 23 13:27:00 EST 2003
POD ERRORSHey! The above document had some coding errors, which are explained below:
Visit the GSP FreeBSD Man Page Interface. |