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