Featured FLA
» Author: Bugra Ozden
» Title: Skatalog v9 - product catalog
» Description: Create your product catalog easly and publish on your website or Create your image gallery, documents list, portfolio. Fully XML Driven
» More by Bugra Ozden
Featured Site
» Posted in the Flash Kit Links section
» Title: Creative DW Image Show PRO
» Description: Creative DW Image Show PRO is a Dreamweaver extension which enables the user to create multimedia presentations. It combines the features of the popular Creative DW Image Show with the ability to add professional text effects to slides (similar to After Effects). The product is very customizable: the user can choose the duration of the transition effects, the slide motion start and end position, zoom and panning type for both images and texts.
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: