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.

Share this

Related Posts

:)
:(
hihi
:-)
:D
=D
:-d
;(
;-(
@-)
:P
:o
:>)
(o)
:p
:-?
(p)
:-s
(m)
8-)
:-t
:-b
b-(
:-#
=p~
$-)
(y)
(f)
x-)
(k)
(h)
cheer