Is there a way to be able to place a .txt file within the same folder of a swf, and have what the .txt file says be placed somewhere within the actionscript?
For example, If I have a movie clip, and there are three different functions that make the MC do something. But I only want one of them to play through designation of an outside file. I just have to place a .txt file in the folder that says "function1" And it will call that function in the action script.
Example idea.
Code:
function function1() {
mc.play();
}
function function2() {
mc.loadMovie("picture1.jpg");
}
function function3() {
mc.onEnterFrame = function(){
if (this.hitTest(_xmouse, _root._ymouse, true)) {
this.nextFrame();
} else {
this.prevFrame();
}
};
}
//pick whatever function
then have it pick which function. instead of just typing function3(); in the action script. Have it be whatever is in the .txt file. That way you can pick what function is played by just changing the .txt file.
I'm hoping what I want to do makes sense. Help would be very much appreciated