# External swf and tween

**URL:** <https://forum.kirupa.com/t/external-swf-and-tween/220783>\
**Category:** Uncategorized\
**Created:** [March 29, 2007, 6:24am UTC](https://forum.kirupa.com/t/external-swf-and-tween/220783 "2007-03-29T06:24:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tannermorrow](https://avatars.discourse-cdn.com/v4/letter/t/6f9a4e/32.png) [@tannermorrow](https://forum.kirupa.com/u/tannermorrow)\
**Post date:** [March 29, 2007, 6:24am UTC](https://forum.kirupa.com/t/external-swf-and-tween/220783/1 "2007-03-29T06:24:45Z")

</div>

i have an external swf which i import into my main swf using the loadMovie command. my external swf has some tween class animations in it. if i run the main movie, the external swf movie runs fine of course…but the tween classes are not loaded. am i missing somthing?

here is the code from the external swf file which is applied to a clickable movie clip of course.

\*\*this.onRollOver = function() {  
rewind = false;  
play();  
var squaretween = new mx.transitions.Tween(previewthumb, “\_xscale”, mx.transitions.easing.Elastic.easeOut, 0, 1200, .5, true);  
var squaretween = new mx.transitions.Tween(previewthumb, “\_yscale”, mx.transitions.easing.Elastic.easeOut, 0, 1200, .5, true);  
squaretween.onMotionFinished = function() {  
loadMovie(“hotairlarge.swf”, “\_root.homecontainer.printworkcontainer”);  
}  
};

\*\*any help would be great!
