# Actionsscript conflict...i JUST dont get it

**URL:** https://forum.kirupa.com/t/actionsscript-conflict-i-just-dont-get-it/226747
**Category:** Uncategorized
**Created:** [May 23, 2007, 4:33pm UTC](https://forum.kirupa.com/t/actionsscript-conflict-i-just-dont-get-it/226747 "2007-05-23T16:33:27Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![somdow](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@somdow](https://forum.kirupa.com/u/somdow)
#### Post date: [May 23, 2007, 4:33pm UTC](https://forum.kirupa.com/t/actionsscript-conflict-i-just-dont-get-it/226747/1 "2007-05-23T16:33:27Z")

</div>

okay, basically, i have a button that when pressed, i want it to do a few things…

1- on rollOver, go to and play (my MC instance here) the intro animation for MC  
2- on rollOut, same as above but plays the outro animaiton i have setup on the same MC as above  
3-on press, do the action etc…

4- go to my other MC (soundctrlMC // instance name " control ")with sound in it and fade it out, and as far as this one is concerned, i have that MC (soundctrlMC) with volume control actions on certain frames etc…

now this is where the problem starts, the button ONLY works when i have one or the other active but not both…meaning itll work if i ONLY have the actionscript (steps 1-3 above) OR (step 4) by itself but i cannot nest all the code together…if i do then steps 1-3 work but 4 doesnt.

heres the code.

> on (press) {  
> if (getProperty (“/control”, \_currentframe )==2) {  
> tellTarget (“/control”) {  
> gotoAndPlay(3);  
> }  
> } else if (getProperty (“/control”, \_currentframe )==21) {  
> tellTarget (“/control”) {  
> gotoAndPlay(21);  
> }  
> }  
> }

on (press) {  
gotoAndStop(194);  
}

on(rollOver){this.nycMC.gotoAndPlay(2)}  
on(rollOut){this.nycMC.gotoAndPlay(51)}

on(press){gotoAndPlay(194)}

also when i test the code it says there arent any errors so i dont understand…

i need help BAD…:hurt:
