Featured FLA
» Author: Nitin Tikhe
» Title: Cart
» Description: This Animation Tut is a fun and useful for kids below 15 years. Watch the Flag, Doors, Stick and Horse movements.
» More by Nitin Tikhe
Featured Site
» Posted in the Flash Kit Links section
» Title: Banana Swimwear
» Description: This is a banana swim wear interactive catalog we designed and animated in Flash
1 :
The first thing we do is write some script so that we can load an external text file into our movie.
loadText = new LoadVars(); loadText.load("example.txt"); loadText.onLoad = function(success) { if (success) { web.html = true; web.htmlText = this.example; }
2: Now we write our general function that we will use to do something and that is controlled from our text file.
loadMov = function (mov) { _root.holder_mc.loadMovie(mov+".swf"); };
In where _root.holder_mc is an empty movie clip in our _root, which is used as a container for our external movies.
3: Since flash can format this text file as html, we can imagine that html tags can be used within this text file. So we can write within our text file: