3 Replies Latest reply on Dec 26, 2011 2:09 PM by saariko

    can't call a javascript function from actionscript with ExternalInterface

    saariko Level 1

      hey all


      i am trying to scroll an html page back to top in response to an actionscript call


      i have no knowledge of html or js, but i did this


      in flash pro, in my document class i have this:




      in the automatic html page wrapper made by flash pro (publish template "Flash with FSCommand") i added these lines inside the script block:


      function JumpScroll() {




      compilation gives no error but when i test this locally (with google chrome) nothing happens and the swf stops reacting


      any ideas?