I'm trying to create one of my first actionscript3s...I want to make a dynamic text box (dynText) write a description of what the hovered button (stopButton) does.
No text is shown when I hover the button and I get no error message. Why?
This is my code
dynText.addEventListener( MouseEvent.MOUSE_OVER, myInfoHandler )
function myInfoHandler( event ){
if(event.target.name == "stopButton"){
dynText.text = "Stop animation!";
}
}
And just to make sure it isn't the text fields fault: to make a dynamic text field do I just create a text field and choose "Dynamic text" in the dropodown?
I've tried too google and read other answers but I guess I'm too much of a noob to understand...