Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

actionscript button click

Guest
Nov 18, 2015 Nov 18, 2015

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

TOPICS
ActionScript
250
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 18, 2015 Nov 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 18, 2015 Nov 18, 2015
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines