Creating an image map in Flash MX. I want to be able to load text that I put in the actionscript pane into a text box, so when I mouse over a particular area of my image it will detect and put my text in the text box up on mouse over and disappear on mouse out.
experiment: create a txt field. Select it and change it’s type in the properties panel to “dynamic”. in the instance name field (not the variable field) place the name “myText”.
with the text field selected hit F8 to make it a movie clip. give this movie clip an instance name of “myMC”.
with the actions panel open, select “myMC” and paste this code onto the clips actions
onClipEvent(mouseMove){
if(this.hitTest(_xmouse, _ymouse, true)){
this.myText.text="The mouse is over me."
}else{
this.myText.text="";
}
}
This should give you the basics you need. any questions just ask.
alternative:
use various invisible buttons (only hit state) over your image, and for each, use onRollOver(txtbox.text=“content you want”) and onRollOut(txtbox.text="")… more or less the same…you get the idea…
(textfield instance name = txtbox of course…)