# Rollover button problem

**URL:** <https://forum.kirupa.com/t/rollover-button-problem/7771>\
**Category:** flash\
**Created:** [November 7, 2002, 1:12pm UTC](https://forum.kirupa.com/t/rollover-button-problem/7771 "2002-11-07T13:12:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![larrison](https://avatars.discourse-cdn.com/v4/letter/l/77aa72/32.png) [@larrison](https://forum.kirupa.com/u/larrison)\
**Post date:** [November 7, 2002, 1:12pm UTC](https://forum.kirupa.com/t/rollover-button-problem/7771/1 "2002-11-07T13:12:53Z")

</div>

Hi, im a little new to flash, and have been using this site to help me on my way to getting familiar with the program, but i seem to have a problem. I was working with the buttons where when you rollover them, it plays a tween from a movie, the example on the site is at:[http://www.kirupa.com/developer/flash5/advroll.asp](http://www.kirupa.com/developer/flash5/advroll.asp)  
I have 4 buttons, and all are set up as the example said to do it:

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

The first 3 buttons are fine, but when rolling over the last button a few times, it seems to activate the other buttons. I would roll over the last one and it looked like i just rolled over the first one.

I have the button tweens separated so they wont all play when activating one, but it still wont work, please help ☹  
Thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 11, 2002, 9:02am UTC](https://forum.kirupa.com/t/rollover-button-problem/7771/2 "2002-11-11T09:02:35Z")

</div>

Can only tell ya one thing, dont use tellTarget!!

try

```php

on (rollOver) {
_root.rollover.gotoAndPlay("1text");
}

```

and the other way around

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 12, 2002, 8:09am UTC](https://forum.kirupa.com/t/rollover-button-problem/7771/3 "2002-11-12T08:09:16Z")

</div>

yeah… tellTarget is not only confusing, but it’s been depricated so it will eventually be illiminated entirely from the a/s language. Use the dot syntax method, as you see in the above example. If you need help with figuring out how dot syntax works, just reply back and we’ll try to give a more detailed explination.

the most basic explination:  
you’re naming your object, by path, and then giving it a command. Each name, function, method, etc is separated by periods, in a string from left to right.

(sorry Abraxxas, just trying to give a little more detail… thanks for answering that one.🙂 )
