Kamis, 21 Mei 2015

Load Swf With Actionscript 3.0

This time I will discuss about the Load swf With Actionscript 3.0 :

1. Create a new document.
2. In the first frame, press F9 to display the action frame.
3. And type the following script fragment :

    function loadSWF(){
         var url : URLRequest = new URLRequest(“movie.swf”);
         var loader : Loader = new Loader ();
         loader.load(url);
         addChild(loader);
    }

4. Save the file with the name loadMovie.fla
5. Then find the file you want to load, and move it into a folder with files loadMovie.fla. Do not forget to give the name of the file that will movie.swf you load.

6. Run the program by pressing Ctrl + Enter. When the video will go live show without the execution.
Lokasi: United States

0 komentar:

Posting Komentar