# External file's AS problem

**URL:** <https://forum.kirupa.com/t/external-files-as-problem/105390>\
**Category:** Uncategorized\
**Created:** [March 25, 2004, 5:18pm UTC](https://forum.kirupa.com/t/external-files-as-problem/105390 "2004-03-25T17:18:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![G111](https://avatars.discourse-cdn.com/v4/letter/g/7ea924/32.png) [@G111](https://forum.kirupa.com/u/G111)\
**Post date:** [March 25, 2004, 5:18pm UTC](https://forum.kirupa.com/t/external-files-as-problem/105390/1 "2004-03-25T17:18:54Z")

</div>

I’m using the belwo AS to trigger my rollover and rollout animations for a button in an mc. My buttons are in a seperate swf file and I am importing them using a container method into my main layout but when I rollover and rollout nothing is happening yet the animations work when the imported file is viewed alone, any reasons why?

[AS]this.about\_mc.about\_butt.onRollOver = function(){  
\_root.about\_mc.gotoAndPlay(“rollover”);  
}  
this.about\_mc.about\_butt.onRollOut = function(){  
\_root.about\_mc.gotoAndPlay(“rollout”);  
}[/AS]

Thanks for your time
