so I am using Animate CC outputting to Canvas, and have the following in my script:
var width = canvas.width;
var height = canvas.height;
console.log(width, height);
Question: When I open the console in the preview window and type in "canvas.width" or canvas.height it returns the correct values. However the console.log doesn't print the variable values. Any ideas what I am missing here?
Thanks!
I'm not sure about the scope but maybe try
console.log(this.width, this.height);orOnly because I know
Create.jshas a scope limiter to try and keep locals local. Just guessing but hope it works