2 Replies Latest reply on Apr 29, 2016 12:44 PM by multimedia-communications

    Make an Object Draggable in HTML Canvas

    multimedia-communications Level 1

      I'm having trouble getting Animate to make an object draggable.

      I insert the following into the html document's <head>:

       

      <script type="text/javascript" charset="utf-8" src="js/jquery-2.2.3.min.js"></script>

      <script type="text/javascript" charset="utf-8" src="js/jquery-ui.min.js"></script>

       

      I insert this (where theobject is a symbol created within Animate) just before the closing </head> tag:

      <script>

      $(dragobject);

       

      function dragobject() {

        $('theobject').draggable();

      }

      </script>

       

      theobject remains undraggable. I suspect it has to do with the way Animate names its symbols.

      Any ideas would be appreciated.