Hi,
The following code, when attached to the MC panTracker_mc works as desired, passing the value of the dynamic text field with a VARIABLE name of s1Pan to s1 sound object, thus controlling the pan.
onClipEvent (enterFrame) {
s1Pan = Math.round(_root._xmouse/2.5)-100;
_root.s1.setPan(s1Pan);
}
This code passes the value to the textField but does not control the s1 object
panTracker_mc.onMouseMove = function() {
panTracker_mc.s1Pan = Math.round(_root._xmouse/2.5)-100;
_root.s1.setPan(s1Pan);
};
I’m using 2004 MX Pro on MAC OS 10.2.8