4 Replies Latest reply on Apr 29, 2013 3:13 AM by heathrowe

    Problem with published 'web'

    MRacancoj11

      Hi!

       

      I'm quite new to Adobe Animate.

       

      Just did a simple 'drag n drop' mini site using jQuery UI and it works fine when I preview it, but if I publish it, I get an error:

       

      TypeError: sym.$(...).draggable is not a function

           {sym.$('ficha'+i).draggable({revert:"invalid"});}

       

       

      Like I said, if I preview (cmd+enter) it works fine, it gives the error when I open the html file published.

       

      This is the code I'm using:

       

      {yepnope({nope:['jquery-ui-1.10.0.custom.min.js'],complete:dragFunc});

       

      function dragFunc(){

           for(var i=1;i<=4;i++) {

                sym.$('ficha'+i).draggable({revert:"invalid"});

           }

       

       

      Really appreciate any suggestions or solutions...