# Imported SWF's via loop, need help targeting swfs for tweening

**URL:** <https://forum.kirupa.com/t/imported-swfs-via-loop-need-help-targeting-swfs-for-tweening/277683>\
**Category:** Uncategorized\
**Created:** [December 15, 2008, 10:02pm UTC](https://forum.kirupa.com/t/imported-swfs-via-loop-need-help-targeting-swfs-for-tweening/277683 "2008-12-15T22:02:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![matius](https://avatars.discourse-cdn.com/v4/letter/m/cdc98d/32.png) [@matius](https://forum.kirupa.com/u/matius)\
**Post date:** [December 15, 2008, 10:02pm UTC](https://forum.kirupa.com/t/imported-swfs-via-loop-need-help-targeting-swfs-for-tweening/277683/1 "2008-12-15T22:02:49Z")

</div>

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:

```auto

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…

```auto

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–
