Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Forgot to add event listeners for async #25

Open
GoogleCodeExporter opened this issue Apr 21, 2015 · 0 comments
Open

Forgot to add event listeners for async #25

GoogleCodeExporter opened this issue Apr 21, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Try and send async
2. See that nothing is sent to the server

Instead of 


I use the latest version of the code, with windows 7 and, checked in all 
browsers.


Currently I added the event listener and removing it myself so data would be 
sent,
Simple to fix, add this line in the load method when checking if all the data 
is prepared(or if you deem it not right, in another place):
addEventListener( MultipartURLLoaderEvent.DATA_PREPARE_COMPLETE, startLoad);

Removing the listener in doSend method:
if (_async)
removeEventListener( MultipartURLLoaderEvent.DATA_PREPARE_COMPLETE, startLoad);

New startLoad signature:
public function startLoad(event:MultipartURLLoaderEvent):void


thats about it to get it working in async mode.

Original issue reported on code.google.com by [email protected] on 27 Sep 2012 at 12:01

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant