How do I access variable in movieclip?
in animatecc i've added clip called myclip , in place code:
var myvar= true;
in te main timeline want access variable there use this:
console.log(this.myclip.myvar);
but keeps showing 'undefined'.
how can read variable within movieclip then?
the source file can downloaded at:
var declares private variable use current frame of movieclip. store variable entire clip, use this.
More discussions in Adobe Animate CC - General
adobe
Comments
Post a Comment