Question
TextField Help!
Hey,
I'm still new to action script in Flash 8. I want to be able to add a paragraph of text to an empty text field via action script. Heres what I'm typing in the action panel. News_txt is the instance name on the stage.
this.Recent_mc.onPress = function() {
News_txt.text = "This is the text I am typing to show in the SWF and
its not working. I really want this to work. Blah blah blah blah. I'm
just filling up space";
}
Heres what the output panel says...
**Error** Scene=Scene 1, layer=Actions, frame=1:Line 26: String literal was not properly terminated
News_txt.text = "This is the text I am typing to show in the SWF and
**Error** Scene=Scene 1, layer=Actions, frame=1:Line 27: Syntax error.
its not working. I really want this to work. Blah blah blah blah. I'm
**Error** Scene=Scene 1, layer=Actions, frame=1:Line 28: Syntax error.
just filling up space";
**Error** Scene=Scene 1, layer=Actions, frame=1:Line 29: Syntax error.
}
Total ActionScript Errors: 4 Reported Errors: 4
How do I fix this? How do I make it so that when I type text in the action script panel it doesnt carry all the way across the screen out of view? I want to be able to type it in the panel like I was typing it as a normal paragraph. Any help is appreciated. Thanks guys.
Dan
I'm still new to action script in Flash 8. I want to be able to add a paragraph of text to an empty text field via action script. Heres what I'm typing in the action panel. News_txt is the instance name on the stage.
this.Recent_mc.onPress = function() {
News_txt.text = "This is the text I am typing to show in the SWF and
its not working. I really want this to work. Blah blah blah blah. I'm
just filling up space";
}
Heres what the output panel says...
**Error** Scene=Scene 1, layer=Actions, frame=1:Line 26: String literal was not properly terminated
News_txt.text = "This is the text I am typing to show in the SWF and
**Error** Scene=Scene 1, layer=Actions, frame=1:Line 27: Syntax error.
its not working. I really want this to work. Blah blah blah blah. I'm
**Error** Scene=Scene 1, layer=Actions, frame=1:Line 28: Syntax error.
just filling up space";
**Error** Scene=Scene 1, layer=Actions, frame=1:Line 29: Syntax error.
}
Total ActionScript Errors: 4 Reported Errors: 4
How do I fix this? How do I make it so that when I type text in the action script panel it doesnt carry all the way across the screen out of view? I want to be able to type it in the panel like I was typing it as a normal paragraph. Any help is appreciated. Thanks guys.
Dan