Giter Club home page Giter Club logo

amfphp-toolbox's Introduction

Do you use AMFPHP for remoting? If so, you might find AMFPHP Toolbox of some interest. This ActionScript library takes care of laying the groundwork for you (you know, all the boring bits of setting up connections, responders, etc.), and then helping you along the way with some extra tools.

Quick Example

Normal Code

var nc:NetConnection = new NetConnection;
var resp:Responder   = new Responder(onResult, onFault);
nc.connect("http://localhost/amfphp/gateway.php");

function onResult(result:Object):void
{
    trace(String(result));
}

function onFault(fault:Object):void
{
    trace(fault.description);
}

nc.call("SomePackage.SomeClass.someMethod", resp, "param1", "param2");
nc.call("SomePackage.SomeClass.anotherMethod", resp, "param3", "param4");

Code with AMFPHP Toolbox

var nc:AmfphpGateway = new AmfphpGateway("http://localhost/amfphp/gateway.php", "SomePackage.SomeClass");
nc.talk("$1.someMethod", "param1", "param2");
nc.talk("$1.anotherMethod", "param3", "param4");

It turns out that both these examples do pretty much the same thing, the main difference is that the first uses just the Flash classes (the traditional way to do it) and the second uses AMFPHP Toolbox. To get started please take a look at the list of tutorials. Then take a look at the ASDoc documentation (included in the download).

By the way, the library was recommended by the developers of AMFPHP. Thanks guys!

A quick note of thanks to the developer of as3ds, an ActionScript library with some great data structures, which is used in AMFPHP toolbox.

Main Features

  • Manages the setup of connection
  • Manages Responders
  • Easy setup of result/fault listeners
  • Cut typing time of common service names with Quick Service Referencing
  • Call many calls with one command with CallSets
  • CallSets also allow those calls to be called on a timed basis
  • Call your services in a queue with CallQueues

amfphp-toolbox's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.