hi everybody,
i’m new at this flash stuff, but ive managed to figure out most things that i need for my first flash site. the only thing im having trouble with is dynamic text. basically i want text example “intro” or “profiles” to appear in a dynamic text box when the mouse is rolled over a particular button. i have tried to adapt tutorials on this site such as the hover caption tutorial, but nothing seems to work. i know for most of you this is a pretty basic problem, but any help would be greatly appreciated. thanks guys.
ps. ive attatched a basic file of what i think should work, but doesn’t.
Your code:
[AS]
on (rollOver) {
this.textbox = “press”;
}
on (rollOut) {
this.textbox = “release”;
}
[/AS]
The Fix:
on (rollOver) {
_root.textbox.text = "press";
}
on (rollOut) {
_root.textbox.text = "release";
}
The fix works for me, you try it. It should work…
hey thanks mate, as i said im new to this and havent quite figured the syntax out of AS. your solution makes perfect sense though, thanks again!!!
p.s. i like your little moon/tide simulation thing, its pretty cool.
You are welcome. I too am a beginner. Just started with Flash some two days ago.:pope:
A piece of advice. Your text value did not display because you are using the instance name of you dynamic textfield. Your first code is not wrong, you just forgot to put the “var” name of the dynamic textfield under its properties. And watch out, do not bew confused with the “var” name and “instance” name of the dynanimc textfield. This is the new feature of Flash MX. Dynamic texts in Flash 5 don’t have that.
Cheers!