Skip to main content
November 18, 2015
Question

actionscript button click

  • November 18, 2015
  • 1 reply
  • 265 views

on a button click how to handle two event one to call Httpservice to check session is expired and after this call download file if session is valid

This topic has been closed for replies.

1 reply

Ned Murphy
Legend
November 18, 2015

Keep the separate events separate.  Have whatever event handler you use to handle the click deal with checking the http service.  Assuming that processing utilizes yet another event listener for the http service confirmation, then use that to trigger the file download in another event handler function.

November 18, 2015

After httpservice call reultevent can't trigger filedownload since File Reference download needs separate button click.