TwelvestoneFlash

Replicating functionality of AS2 XML.onLoad - HELP


Sign in

  • Waiting for Godot ( 720 k posts )
    Just conversation.
  • Thunder Dome ( 23 k posts )
    Photoshop Tennis and Collabs.
  • Photography ( 4.8 k posts )
    For all you shutterbugs, sh...
  • Flash ( 18 k posts )
    ActionScripting to tweens, ...
  • Front End ( 5.8 k posts )
    general front end design an...
  • Back End ( 9.6 k posts )
    serverside scripting, progr...
  • Projects and Theory ( 12 k posts )
    This forum is for discussio...
  • FAQ ( 269 posts )
    All those nagging questions...
  • Design ( 17 k posts )
    graphics & all aspects of g...
  • Purgatory ( 3.6 k posts )
    12stone Jail, feel free to ...
Storm
 
2009-12-02

So, another project is I am building a component in AS2 for handling ALL of the web services. It is a component that agencies will use to communicate with the data services in their training.

So, I have a component they use called 'WebServices' and I handle the storage and error checking for communication, but I need to come up with a STRONG process to guide developers on how to use it.

I thought of onLoad in AS2 but I don't know how it works. Can someone explain how it works and how to create it?

I want them to call as an example:

WebServices.saveTest("100");

and then be able to wait for the return as in:

WebServices.onData = function(){ etc. }

Right now developers using the early component are doing enterframes and hitting the services WAY too much while waiting for the result because theiy're retriggering it if they don't get something right away and my component waits for server return but their app isn't waiting for a return from my component. I want an easy way to guide them on how to develop and I thought if onLoad or onData.

I do have to be concerned with them waiting for the right data response as there are over 25 WS functions and I want them to trigger the timing on the correct response and not just whatever data comes first. I need asynchronous data happening.

Sorry, you must be a member to post to a conversation. Either log in or sign up to get involved.
TwelvestoneFlash

Replicating functionality of AS2 XML.onLoad - HELP