I'm trying to detect mouse over and mouse down events but ONLY when the mouse cursoris positioned directly over a text box called "text1". I get feedback through a textbox called
"feedback". This code gives me feedback no matter where I am positioned, I want it only when the mouse is over the text box-thanks for any advice
onMouseMove = function () {
feedback.text = "You are moving on the text box";
};
onMouseDown = function () {
feedback.text = "You clicked on the textbox component";
};
myListener = new Object();
text1.addListener(myListener);
"feedback". This code gives me feedback no matter where I am positioned, I want it only when the mouse is over the text box-thanks for any advice
onMouseMove = function () {
feedback.text = "You are moving on the text box";
};
onMouseDown = function () {
feedback.text = "You clicked on the textbox component";
};
myListener = new Object();
text1.addListener(myListener);