Copy link to clipboard
Copied
Hello again!
Once again I have a question for You! So I made a button and an output text window to show a text from file and it works, when I play my swf file, but I need the text to show only after the click of the button, not right away when the swf file is opened.
So .I press on the button, then press F9 for actionscript panel and write the following code, but its not working :
button.onRelease = function(){
myText_txt.text.show";
}
myText_txt is the instance name for the text output field and its a dynamic text.
I am only a begginer in Flash and im sorry, if my code is incorrect...
Could You please tell me what am I doing wrong?
Copy link to clipboard
Copied
it's incorrect.
1. there's an unpaired double quote.
2. there's no show property of textfields and especially of a textfield's text property.
use something like:
button.onRelease = function(){
myText_txt.text = "show this text";
}
Find more inspiration, events, and resources on the new Adobe Community
Explore Now