# Rollover code help

**URL:** <https://forum.kirupa.com/t/rollover-code-help/172727>\
**Category:** flash\
**Created:** [December 17, 2005, 5:28am UTC](https://forum.kirupa.com/t/rollover-code-help/172727 "2005-12-17T05:28:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hombr3w311](https://avatars.discourse-cdn.com/v4/letter/h/f4b2a3/32.png) [@hombr3w311](https://forum.kirupa.com/u/hombr3w311)\
**Post date:** [December 17, 2005, 5:28am UTC](https://forum.kirupa.com/t/rollover-code-help/172727/1 "2005-12-17T05:28:40Z")

</div>

Hi  
I have a rollover command in a mc that reveals a pic when rolled over, and makes it disapear when rollout, worls greeat alone, however when it is loaded into the content mc of my main swf, it doesn’t show. I don’t its a thing of levels and target I am just confused. Thanks.

Here is the code for the button:

on (rollOver) {  
tellTarget ("/map") {  
gotoAndPlay (“1text”);  
}  
}  
on (rollOut) {  
tellTarget ("/map") {  
gotoAndPlay (“1back”);  
}  
}

* * *

_map_ is the mc that the picture loads into.

_content_ is the mc in the main swf that _directions_ loads into.

Please advise flash geniuses.!
