Send variable from HTML to AS2
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Send variable from HTML to AS2

  1. #1
    Junior Member
    Join Date
    Feb 2013
    Posts
    6

    Send variable from HTML to AS2

    Hello,

    I have flash movie, with SharedObject, so it remembers last frame where it was, but I have to make HTML button which resets SharedObject variable to 0 and redirects me to different page.

    Is it possible to make such HTML button? And if so, how?


    Best regards,
    Kaspars.

  2. #2
    Dignitary rynoe's Avatar
    Join Date
    Jan 2003
    Location
    Earth
    Posts
    756
    It is possible but only through flash. Use the ExternalInterface class. The call method will trigger javascript functions and the addCallback method will allow javascript to trigger actionscript functions.

    Adobe Link

    OOPS nvm........ >.<
    Last edited by rynoe; 03-29-2013 at 01:56 PM. Reason: AS3 not AS2

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width


HTML5 Development Center

Poll by Flashkit.com