Hello!
I wonder if I can make a button that starts a movieclip AND writes in a text in a dynamatic textfield?
I have this as on the button:
on(release) {
tellTarget(“texteffect”) [color=deepskyblue]//this is the movieclip[/color]
gotoAndPlay(1)
textfield = “text1” [color=deepskyblue] //this is the dynamatic textfield[/color]
}
When i press down the button, the movieclip only starts.
And i have wrote in the textfield in the Var: of the dynamatic textfield.
I wonder, have i done anything wrong or cant i do 2 functions on 1 button?
Thanks
abraxas
The thing is, when pressing down button1 the text : text1 will be showed. But if i press down button2, that does so the text2 will be showed, but it shows text1
(
Button1 shows : text1
Button2 shows : text1
Button2 should show text2 but it doesnt. I got the As on the buttons.
)
Button 1:
on(release) {
tellTarget(“texteffect”) //this is the movieclip
gotoAndPlay(1);
textfield.text = “text1”;
textfield.backgroundColor = true;
textfield.backgroundColor = 0x000000;
}
Button 2:
on(release) {
tellTarget(“texteffect”) //this is the movieclip
gotoAndPlay(1);
textfield.text = “text2”;
textfield.backgroundColor = true;
textfield.backgroundColor = 0x000000;
}
Please help!!
Problem seemed to be having your instance name and variable name the same for your text box.
http://digitalink-designs.com/Functions2.fla
Adam
Yup, had to step out for a sec, but yes that seemed to be the problem.
Also FYI, you don’t have to use telltarget anymore.
A simple
[AS]
texteffect.gotoAndPlay(1);
[/AS]
will serve the same justice.