VARs used in several symbols - help requested

Hey

I have a symbol on my scene (let's call it A), there are other symbols (B & C) in A 2. These symbols are interpolated and are moving through one (two not starting at frame one but more later on). B and C are text boxes and both have an actionscript in frame 1. In this script is a certain calculation. For this calculation is a random number generated necessary, however, in the two symbols they should be equal. So somewhere in my little program linking the symbol B and C (or B and C by using A variable or the scene).

Because of interpolation, things like A.B.myTextbox_txt.text are not possible (or other combinations).

If you give advice to the use of the classes, please give me a detailed, notice because it's something that I just start learning (and so do not yet use this program which I use for my site). My biggest problem with classes is that I have trouble, manage things like that, addressing the variables, instances, other classes, etc.

Thanks in advance,

Barbet

One approach would be to determine the value and store it in a variable in object for both C & B are sure to have the same value.  Then, every time B and C & come to life they can access that variable using MovieClip (parent) .variableName.

Tags: Adobe Animate

Similar Questions

Maybe you are looking for