I have a text box which loads various txt files. The text box is inside a movie clip. the movie clip is on frame 2 of the _root.
At this time I push a button to move the playhead to frame 2 and then push another button to load the txt file. I need it to load upon entry to the frame instead of having to push a button.
I have tried attaching my script to the button which takes the playhead to frame 2 and I have tried putting the script on the first frame of the movie clip. I have also tried putting the script onClipEvent(load) but still nothing happens.
It loads great by just pushing the button within the movie clip but will not load otherwise.
my text file=sampletext.txt
movie clip=textbox_in
my textboxbox within the movieclip on frame 1=text
text variable to load=loadedtext
actionscript on button:
actionscript on frame 1 of movie clip(textbox_in):
Any words of wisdom... I have never gotten this to work and have always just used work-around methods...
help? Ya' Gotta Love It!
At this time I push a button to move the playhead to frame 2 and then push another button to load the txt file. I need it to load upon entry to the frame instead of having to push a button.
I have tried attaching my script to the button which takes the playhead to frame 2 and I have tried putting the script on the first frame of the movie clip. I have also tried putting the script onClipEvent(load) but still nothing happens.
It loads great by just pushing the button within the movie clip but will not load otherwise.
my text file=sampletext.txt
movie clip=textbox_in
my textboxbox within the movieclip on frame 1=text
text variable to load=loadedtext
actionscript on button:
Code:
on (release) {
text = loadedtext;
}
actionscript on frame 1 of movie clip(textbox_in):
Code:
stop ();
loadVariables ("sampletext.txt", "");
Any words of wisdom... I have never gotten this to work and have always just used work-around methods...
help? Ya' Gotta Love It!