solved : i wrote all the codes in thier own layers, and it’s solved.
i’m making a website. i’m making with as 3.0 this time. but, my buttons aren’t working. first 2 buttons work. but other ones not. what can be the problem? my script is :
stop();
home_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler1);
function mouseDownHandler1(event:MouseEvent):void {
gotoAndStop(2);
}
gallery_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler2);
function mouseDownHandler2(event:MouseEvent):void {
gotoAndStop(3);
}
art_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler3);
function mouseDownHandler3(event:MouseEvent):void {
gotoAndStop(4);
}
sanat1_btn.addEventListener(MouseEvent.MOUSE_DOWN, mouseDownHandler4);
function mouseDownHandler4(event:MouseEvent):void {
gotoAndStop(8);
}
update : this works, when do a clean flash file. if you would like to see my fla, i can send.
it says : “TypeError: Error #1009: Cannot access a property or method of a null object reference.
at rzakyn_fla::MainTimeline/frame2()”