AS: Main
What?
In this tutorial you will be learning how to use the loadMovie() command. It is very useful becuase flash only allows 16,000 frames in a file I believe. If you are making a very long movie, and you go pass the frame limit, you can just use the loadMovie() command to add a movie from a URL. It is also useful for if you need a certain file size and you go pass it. Just use the loadMovie() command to add a movie, without barely increasing the filesize. loadMovie() requires exactly three parameters so I will explain them below. Unfortunately, I do not really know about the loadVariablesNum() command, so I will not be teaching that. If anyone wishes to make a tutorial about it, feel free to do so.
------------------
The Code
The loadMovie() command looks like this:
loadMovie(url, target, method);
------------------
The First Parameter
The first parameter is the URL your movie is on. So, replace "url" with this:
http://www.whatever.com/moviename.swf
Flash will then load the contents from that URL.
------------------
The Second Parameter
The second parameter is where you want the movie to be loaded to. You can use _root, _parent, anything you want. (I prefer _root).
------------------
The Third Parameter
The third parameter is the way you want the movie to be loaded. There are two methods: POST, and GET. The POST method will load the movie and NOT show anything extra in the URL. The GET method will load the movie and WILL show extra stuff in the URL. I may be wrong on that, but Im just saying what I know from previous knowledge. If you know the correct thing each method does, please post it here. Also, when you use one of the methods, it must be in quotes. So, POST will be "POST" and GET will be "GET".
------------------
Example Code
Place the following code on the first frame of your movie:
loadMovie("http://www.powercode.riverheart
.net/youare.swf",_root,"POST");
The above code will work. It should load a little animation into your movie.
------------------
I hope you learned something new. If I missed anything, or got something wrong, PLEASE post it here :)