8 Replies Latest reply on Jul 7, 2016 2:27 AM by marjantrajkovski

    Adobe Animate CC - link to js

    luca2424

      Hi,

      Animate automate link to this file "https://code.createjs.com/createjs-2015.11.26.min.js"

      I would like to auto generate link to another js when pres ctrl+enter

      How to set this settings in Animate?

        • 1. Re: Adobe Animate CC - link to js
          marjantrajkovski Level 4

          Changing Template for publishing HTML.

           

          1. Publish Settings > Advanced > Export Selected HTML Template

          2. Open exported HTML Template in e.g. Notepad and change $CREATEJS_SCRIPTS with your custom script e.g. Google hosted CreateJS <script src="https://s0.2mdn.net/ads/studio/cached_libs/createjs_2015.11.26_54e1c3722102182bb133912ad44 42e19_min.js"></script>

          3. Publish Settings > Advanced > Import New... Select Custom HTML Template

          • 2. Re: Adobe Animate CC - link to js
            luca2424 Level 1

            Many thanx for help, please forgive me, because I`m not familiar with codding.

             

            I have this template exported from my animate. How to change only this link https://code.createjs.com/createjs-2015.11.26.min.js . Everything else should stay.

             

            <!--

              NOTES:

              1. All tokens are represented by '$' sign in the template.

              2. You can write your code only wherever mentioned.

              3. All occurrences of existing tokens will be replaced by their appropriate values.

            -->

             

             

            <!DOCTYPE html>

            <html>

            <head>

            <meta charset="UTF-8">

            <title>$TITLE</title>

            <!-- write your code here -->

             

             

            $CREATEJS_SCRIPTS

            $SCRIPT_START

            var canvas, stage, exportRoot;

            function init() {

              // --- write your JS code here ---

              $CJS_INIT

            }

            $PLAYSOUND

            $SCRIPT_END

             

             

            <!-- write your code here -->

             

             

            </head>

            <body onload="init();" style="background-color:#D4D4D4;margin:0px;">

              <canvas id="$CANVAS_ID" width="$WT" height="$HT" style="background-color:$BG"></canvas>

            </body>

            </html>

            • 3. Re: Adobe Animate CC - link to js
              marjantrajkovski Level 4

              REPLACE $CREATEJS_SCRIPTS WITH YOUR SCRIPT <script src="YOUR SCRIPT"></script>

               

               

              <!--

                NOTES:

                1. All tokens are represented by '$' sign in the template.

                2. You can write your code only wherever mentioned.

                3. All occurrences of existing tokens will be replaced by their appropriate values.

              -->

               

               

              <!DOCTYPE html>

              <html>

              <head>

              <meta charset="UTF-8">

              <title>$TITLE</title>

              <!-- write your code here -->

               

               

              <script src="YOUR SCRIPT"></script>

              $SCRIPT_START

              var canvas, stage, exportRoot;

              function init() {

                // --- write your JS code here ---

                $CJS_INIT

              }

              $PLAYSOUND

              $SCRIPT_END

               

               

              <!-- write your code here -->

               

               

              </head>

              <body onload="init();" style="background-color:#D4D4D4;margin:0px;">

                <canvas id="$CANVAS_ID" width="$WT" height="$HT" style="background-color:$BG"></canvas>

              </body>

              </html>

              • 4. Re: Adobe Animate CC - link to js
                luca2424 Level 1

                Ok thx,

                but now I have only link to createjs in my own server,

                but disapear a link to js with canva (this js is called the same like my fla file)

                I would like to only change location of this file src="https://s0.2mdn.net/ads/studio/cached_libs/createjs_2015.11.26_54e1c3722102182bb133912ad44 42e19_min.js">

                everything else should stay the same settings.

                • 5. Re: Adobe Animate CC - link to js
                  marjantrajkovski Level 4

                  I dont understand what you want. REPLACE $CREATEJS_SCRIPTS WITH YOUR LOCATION

                  • 6. Re: Adobe Animate CC - link to js
                    luca2424 Level 1

                    Now when I make ctrl+enter I have this:

                    <!--

                      NOTES:

                      1. All tokens are represented by '$' sign in the template.

                      2. You can write your code only wherever mentioned.

                      3. All occurrences of existing tokens will be replaced by their appropriate values.

                    -->

                     

                     

                    <!DOCTYPE html>

                    <html>

                    <head>

                    <meta charset="UTF-8">

                    <title>db_750x200_v1</title>

                    <!-- write your code here -->

                     

                     

                    <script src="URL to create.js in different location"></script>

                    <script src="filename_the_same_as_fla_name.js"></script>  ----------------->>>>> THIS MISSING

                    <script>

                    var canvas, stage, exportRoot;

                    function init() {

                      // --- write your JS code here ---

                     

                     

                    </script>

                     

                     

                    <!-- write your code here -->

                     

                     

                    </head>

                    <body onload="init();" style="background-color:#D4D4D4;margin:0px;">

                      <canvas id="canvas" width="750" height="200" style="background-color:#FFFFFF"></canvas>

                    </body>

                    </html>

                    ___________________________________________________________________________________

                     

                    But there missing this line below create.js

                    <script src="filename_the_same_as_fla_name.js"></script>

                    Before I import custom template it was be made automatically

                    • 7. Re: Adobe Animate CC - link to js
                      luca2424 Level 1

                      Hi,

                      someone could help me how to fix it?

                      Its stuck.

                      • 8. Re: Adobe Animate CC - link to js
                        marjantrajkovski Level 4

                        what is problem?