I have several SWF files that need to be imported into my main movie. The problem I have is with targeting the SWFs after import - I would like to Tween them with the Tweener class if possible. My code looks like:
var swf:Array = new Array("movie1.swf", "movie2.swf", "movie3.swf", "movie4.swf");
for (var i:uint = 0; i < swf.length; i++) {
var _movieURL:URLRequest = new URLRequest(swf*);
var _movieLDR:Loader = new Loader();
[COLOR=gray]// var _movie:String = "movie"+*;[/COLOR]
[COLOR=gray]// trace(_movie);[/COLOR]
[COLOR=black]_movieLDR.load(_movieURL);[/COLOR]
addChild(_movieLDR);
}
As you can see by the commented code I tried giving my swfs names to be called by but this didn’t work. If I bring in each swf independently and then target the swf via tweener code it actually works, so I’m a bit confused really. Here is what the tweener code looks like if it helps…
Tweener.addTween(**movie3**, { x: 4000, time: .7, delay: 5, alpha: 0, transition: "easeIn" } );
Tweener.addTween(**movie2,** { x: 4000, time: .7, delay: 15, alpha: 0, transition: "easeIn" } );
Tweener.addTween(**movie1**, { x: 4000, time: .7, delay: 25, alpha: 0, transition: "easeIn" } );
Tweener.addTween(**movie0,** { x: 4000, time: .7, delay: 30, alpha: 0, transition: "easeIn" } );
As usual, thanks for your help–