Internet Commerce

Partners & Affiliates

Developer Channel


Featured Flash FLA
Gallery Downloads 11401 Flash Movies | 5 New Flash Movies Added
What's New | Top 100

Featured FLA

»  Author Miguel Panos
»  Title: Tarta
»  Description: It is a circle graph or pie chart that takes the data entered by user
»  More by Miguel Panos


Random FLAs | Add Flash Movie
Featured Flash Site
Gallery Downloads 4839 Flash Sites | 1 New Flash Links
What's New | Top 100 Flash Site

Featured Site

»  AuthorDeft Creative Ltd
»  Link: Home Page
»  Description: Portfolio site for .DeftCreative Ltd. A UK based web design studio specialising in flash websites, games and interactive CDROMs. With an emphasis on making things different.


Random Links | Add your own Flash Related Links
Flash Tutorials 1484 Tutorials 7 New Tutorials Added!
What's New | Top100

» Making Automatic Training Screen Capture Easily
» Create Undersea Life Animation
» Making Deinterlace Video with a low bitrate Easily
» How To Make A Simple Animation Using Christmas Clips
» Simple Step by step flash game tutorial Spot the diffrence
» How To Make A Moving Text Slide
» Create Flash Banner With Text Float Effect
» How To Make Zoo Photos Slideshow
» How To Make A Dolphin Photos Slideshow
» Unknown Tag: Title10
Random Tutorial | Add Site


Tutorials Home What's New Top Rated Submit myTutes Random!

Search Tutorials


Tutorials Tutorials » Dynamic_Content

Categories Controlling flash from html
Author: roberto marras | Website: http://www.arylone.com |

 
Page 1
1

1: The first thing is create a text file and name it example.txt Inside this text file write: web= Save it in the same directory (folder) as you will save your fla. Now open flash and in the first frame we will 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");
};
...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:
example=

01-myMovie1