Share Posted July 13, 2020 I've create in Animation 2020 some HTML banners for google Ads. Than when I do the upload it it doesnt work. How can I fiz it? https://code.createjs.com/1.0.0/createjs.min.js Link to post Share on other sites
Share Posted July 13, 2020 Hey Ricardo and welcome to the GreenSock forums. CreateJS is not a GreenSock tool and we don't support it here. But even so, there's no way that we can help using the information that you've provided. If you'd like help, please provide a way for us to recreate the error. Link to post Share on other sites
Author Share Posted July 13, 2020 Ah ok. soory I didin't knew ... I have my animation file and the html and js file in one folder. and when I upload the zip file to google ads the message said that : Your HTML5 ad is trying to reference a resource external to the .ZIP file: https://code.createjs.com/1.0.0/createjs.min.js. Only internal file references are allowed (for example, "path / to / asset / in-zip.png"). <html> <head> <meta name="ad.size" content="width=120,height=600"> <meta name="authoring-tool" content="Adobe_Animate_CC"> <title>index</title> <!-- write your code here --> <script src="https://code.createjs.com/1.0.0/createjs.min.js"></script> <script src="index.js"></script> <script> var canvas, stage, exportRoot, anim_container, dom_overlay_container, fnStartAnimation; function init() { canvas = document.getElementById("canvas"); anim_container = document.getElementById("animation_container"); dom_overlay_container = document.getElementById("dom_overlay_container"); var comp=AdobeAn.getComposition("2CD73DF3FC134BF0913FBBFE2DD86EC6"); var lib=comp.getLibrary(); var loader = new createjs.LoadQueue(false); loader.addEventListener("fileload", function(evt){handleFileLoad(evt,comp)}); loader.addEventListener("complete", function(evt){handleComplete(evt,comp)}); var lib=comp.getLibrary(); loader.loadManifest(lib.properties.manifest); } Can you help me? Link to post Share on other sites
Share Posted July 13, 2020 Try using Google's CDN instead > <script src="https://s0.2mdn.net/ads/studio/cached_libs/createjs_2019.11.15_min.js"></script> ...and if that doesn't work, you can always embed the createjs library into the HTML (just copy and paste all of the javascript code from that link into its own <script> tag. 1 Link to post Share on other sites
Author Share Posted July 14, 2020 Hi Davi. Thank you a lot!! It works perfectly... 1 Link to post Share on other sites
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now