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:

https://we.tl/hpjltuzfaj

var declares private variable use current frame of movieclip. store variable entire clip, use this.

 



More discussions in Adobe Animate CC - General


adobe

Comments

Popular posts from this blog

Reader DC

AdobeIDの作り方

Adobe InDesign CC 2017 has stopped working