# Buttons not responding?

**URL:** <https://forum.kirupa.com/t/buttons-not-responding/281495>\
**Category:** flash\
**Created:** [February 9, 2009, 11:11pm UTC](https://forum.kirupa.com/t/buttons-not-responding/281495 "2009-02-09T23:11:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DH1234](https://avatars.discourse-cdn.com/v4/letter/d/35a633/32.png) [@DH1234](https://forum.kirupa.com/u/DH1234)\
**Post date:** [February 9, 2009, 11:11pm UTC](https://forum.kirupa.com/t/buttons-not-responding/281495/1 "2009-02-09T23:11:16Z")

</div>

Hello All,

In my main timeline, I have an image fade in and stop on frame 61. On Frame 61, the code below executes;

[AS]stop();  
var placesXML:XML =  
\<places\>  
\<place name= “Bengkulu”\>  
\<frame\>63\</frame\>  
\<Data\>This is a deliightful place in Sumatra\</Data\>  
\</place\>  
\<place name= “Yogyakarta”\>  
\<frame\>62\</frame\>  
\<Data\>This is a deliightful place in Java\</Data\>  
\</place\>  
\<place name= “Banda\_Aceh”\>  
\<frame\>64\</frame\>  
\<Data\>This is a deliightful place in Northern Sumatra\</Data\>  
\</place\>  
\</places\>

var nameBtn:Array = [Yogyakarta, Banda\_Aceh, Bengkulu];  
var i:int = nameBtn.length;  
while(i){  
i–;  
nameBtn\*.addEventListener(MouseEvent.CLICK, showData);  
}

function showData(e:MouseEvent):void{  
var xmlFrame:int = placesXML._.(@name == e.target.name).frame;  
var xmlData:XMLList = placesXML._.(@name == e.target.name).Data.text();  
gotoAndStop(xmlFrame);  
myMarker\_mc.myText.text = xmlData.toString();  
}

function removeMarker(event:MouseEvent):void  
{  
gotoAndStop(61);  
}

myMarker\_mc.bt\_remove.addEventListener(MouseEvent.CLICK, removeMarker);

function scrollUp (Event:MouseEvent):void {

```
myMarker_mc.myText.scrollV -= 1;

```

}

function scrollDown (Event:MouseEvent):void {

```
myMarker_mc.myText.scrollV += 1;

```

}

myMarker\_mc.bt\_up.addEventListener (MouseEvent.CLICK, scrollUp)

myMarker\_mc.bt\_dn.addEventListener (MouseEvent.CLICK, scrollDown)[/AS]

There are no output errors, or compiler errors, yet when I click on one of the buttons, the movie does nothing - it certainly does not gotoAndStop on frame 62, 63, or 64 as I am asking it too. Before this code, there are no other actions at all in the movie - just a simple fade in image…Any thoughts as to what the potential problem may be?

Cheers

Dan H
