Skip to main content
May 11, 2010
Question

loadMovieNum for AS 3.0

  • May 11, 2010
  • 2 replies
  • 3053 views

Hi all, can anyone tell me the equivilant for:

"loadMovieNum("swf.swf", 0);

Im trying to use the following code:

"loadMovieNum("swf.swf", 0);

in AS 3.0???

It seems to me that when comparing AS 2.0 and AS 3.0 its like comparing english to greek. Why such drastic changes across this language?

This topic has been closed for replies.

2 replies

Inspiring
May 13, 2010

var ldr:Loader = new Loader();

 var url:String = "http://www.unknown.example.com/content.swf";
 var urlReq:URLRequest = new URLRequest(url);
 ldr.load(urlReq);
 addChild(ldr);

I think AS3 is far easy comparing to AS2,because there is only one rule for every class or object. Just instantiate it with constructor and work on it I am also intermediate in it, I learn a lot from its documentation. Documentation is great.

Ned Murphy
Legend
May 11, 2010

To load an swf file using AS3 you use the Loader class (or the UILoader component).  There are no levels in AS3, so the Num element of loadMovieNum doesn't exist.