main timeline frame 1 (it’s the only frame) code: trace(mc.b); there’s a clip instance called mc in frame 1.
in timeline of mc and frame 1 (it’s the only frame) I wrote: var b=5;
output undefined
WTF !!! why??? I’ve correctly referenced the variable name with the clip name where this variable lives!
In turn, if in main timeline I put: var a =7; and then in mc’s timeline I write trace(_parent.a) or (_root.a), the output is 7, that was expected.
What am I doing awesomely wrong???:jail: