Hi,
My goal is to create a MC which behaves like a button. The button
contains a dynamic textbox which displays an externally loaded
text. On a mouseOver it should display (via a frame as) the assigned
mouseOver text.
I use this code:
loadText = new LoadVars();
loadText.load("pagina1.txt");
loadText.onLoad = function() {
link1.link01.text = this.link01;
link2.link02.text = this.link02;
};
link1.onRollOver = function() {
link1.link01Hover.text = this.link01Hover;
}
link1.onRollOut = function() {
link1.link01.text = this.link01;
}
link2.onRollOver = function() {
link2.link02Hover.text = this.link02Hover;
}
link2.onRollOut = function() {
link2.link02.text = this.link02;
}
stop();
When I test mc link01 in the movie, the textbox shows on a mouseOver:
_level0.link1.link01Hover
on a mouseOut:
_level0.link1.link01
It should be:
mouseOver
pagina01 1111111 hover link01!
mouseOut
pagina1 link01
Same goes for the other link.
I’m a bit stuck here. I want to make these buttons for a gallery
which has 260 images. The titels of these images are also
functioning as buttons.
The way these buttons are made should give me only work
in creating the text files. (hopefully it gives me less physical work :))
Thank you in adv,
Baeshin