# Controling main movie from external swf

**URL:** <https://forum.kirupa.com/t/controling-main-movie-from-external-swf/274820>\
**Category:** flash\
**Created:** [November 5, 2008, 12:35pm UTC](https://forum.kirupa.com/t/controling-main-movie-from-external-swf/274820 "2008-11-05T12:35:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![darkstyle](https://avatars.discourse-cdn.com/v4/letter/d/a5b964/32.png) [@darkstyle](https://forum.kirupa.com/u/darkstyle)\
**Post date:** [November 5, 2008, 12:35pm UTC](https://forum.kirupa.com/t/controling-main-movie-from-external-swf/274820/1 "2008-11-05T12:35:19Z")

</div>

Hi experts,  
I have two files  
main.swf and external.swf

i have use the following script on main.swf to do animation

import mx.transitions.Tween;  
import mx.transitions.easing.\*;

```php
 
btn.onRelease = function(){
new Tween(_root.textBox,"_x",Strong.easeOut,_root.textBox._x, 100,1,true);//2 is the num of seconds
new Tween(_root.textBox,"_width",Strong.easeOut,_root.textBox._width,400,2,true)

```

which work perfectly fine.

Now due some reason i had to place the navigation bar in the external movie clip , in external.swf  
Using the same script how can i control the textBox animation which is on the main.swf??  
please help.
