1. Create a dynamic text in the stage
//In the instance name field, write "displayname"
//In the variable field, write "displayvar"

2. Create a new layer to put ur script

3. Open Action Panel and write down these script:

myVar=new LoadVars();
myVar.load("textload.txt");
myVar.onLoad=function(){
displayvar=myVar.displayer;
}

Note :

//we create a new variable named "myVar", it will load a file named "textload.txt"

//dynamic text will display defined file previously

//the content of "textload.txt"
displayer=This is text that will be displayed

0 comments