Hi,
I am loading tekst into an MC like this, and it works fine:
loadText = new LoadVars();
loadText.onLoad = function(success) {
if (success) {
tekstMC.nieuwstekst.html = true;
tekstMC.nieuwstekst.htmlText = this.tekst;
tekstMC.nieuwstekst.autoSize = true;
}
};
loadText.load("nieuwstekst.txt");
Now I want to convert the MC to a button, an I tried this:
loadText = new LoadVars();
loadText.onLoad = function(success) {
if (success) {
button.tekstMC.nieuwstekst.html = true;
button.tekstMC.nieuwstekst.htmlText = this.tekst;
button.tekstMC.nieuwstekst.autoSize = true;
}
};
loadText.load("nieuwstekst.txt");
But now the text doesn’t show anymore.
It also happens when I directly convert the textfield to a button.
I wonder if it is possible to convert it to a button, still showing the text?
I really wouldn’t want to make seperate buttons.
Thank you very much again,
Jerryj