lundi 20 février 2017

How to call on a variable from parent? AS3

Let's say I have a variable in the actionscript panel on a movieclip parent_mc: var ispaused:Boolean = false;

inside this movieclip is another movieclip with its own actionscript child_mc: if (!ispaused) { gotoAndPlay(1); }

How do I call for a variable inside the parent when dealing the actionscript inside a child movieclip?

Aucun commentaire:

Enregistrer un commentaire