# Rollover in swf loaded into another swf

**URL:** <https://forum.kirupa.com/t/rollover-in-swf-loaded-into-another-swf/167667>\
**Category:** Uncategorized\
**Created:** [October 30, 2005, 9:42pm UTC](https://forum.kirupa.com/t/rollover-in-swf-loaded-into-another-swf/167667 "2005-10-30T21:42:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![frizzle\_fry](https://avatars.discourse-cdn.com/v4/letter/f/46a35a/32.png) [@frizzle\_fry](https://forum.kirupa.com/u/frizzle_fry)\
**Post date:** [October 30, 2005, 9:42pm UTC](https://forum.kirupa.com/t/rollover-in-swf-loaded-into-another-swf/167667/1 "2005-10-30T21:42:44Z")

</div>

the rollover for my buttons in the swf that they’re in work until the swf is loaded into another swf:huh:  
heres the code im using for the buttons

```auto
on (rollOver) {
 	_root.rollover.gotoAndPlay("pic1");
 }

```

do i need to change the \_root. part of the code to something else?  
i tried adding the container name that the swf is being loaded into but still no good. ex:\_root.contents.rollover.gotoAndPlay(“pic1”);
