# Using Tween Class in an externally loaded movie

**URL:** <https://forum.kirupa.com/t/using-tween-class-in-an-externally-loaded-movie/241412>\
**Category:** flash\
**Created:** [October 13, 2007, 3:39pm UTC](https://forum.kirupa.com/t/using-tween-class-in-an-externally-loaded-movie/241412 "2007-10-13T15:39:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DirtyApe](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@DirtyApe](https://forum.kirupa.com/u/DirtyApe)\
**Post date:** [October 13, 2007, 3:39pm UTC](https://forum.kirupa.com/t/using-tween-class-in-an-externally-loaded-movie/241412/1 "2007-10-13T15:39:27Z")

</div>

If the tween class is imported into a main movie, and I use loadMovie to load an external movie into the main movie, is there a way to reference to the tween class in the main movie for use in the external movie? Kinda confusing, right…

I import this in the main movie:

```auto
 
import mx.transitions.Tween;
import mx.transitions.easing.*;

```

And I have tried to access the tween class in the main movie from the externally loaded movie to fade a movieclip in it with instance name “fade”… I tried the following methods, but none of them work:

```auto
 
new Tween(fade, "_alpha", _root.Strong.easeInOut, 100, 0, 2, true);
new Tween(_root.externalmovie.fade, "_alpha", _root.Strong.easeInOut, 100, 0, 2, true);
new Tween(_root.externalmovie.fade, "_alpha", Strong.easeInOut, 100, 0, 2, true);
new Tween(_root.externalmovie.fade, "_alpha", mx.transitions.easing.Strong.easeInOut, 100, 0, 2, true);

```

I know I could just import the Tween class into the external movie & use it that way, but I’m just trying to figure out why I can’t use it since it was already imported into the main movie… any suggestions would be appreciated!
