actionscript 3 - Can't transfer to another frame after initial gotoAndStop(); -
hello i'm trying make flash website that has menus. problem gotoandstop(); doesn't work after transferring frame making impossible select items in sub menu. here's i'm talking about.
let's picked flash works, , goes frame, after can't select of items in second image though have event listener it.
first image:
second image: can't click on part. appears when click flash works.
here's code.
//this flash works button flashworks_btn.addeventlistener(mouseevent.click, goflashworks); function goflashworks(event:mouseevent):void{ gotoandstop(2); } //let's picked basic animation basicanimation_btn.addeventlistener(mouseevent.click, gobasicanimation); function gobasicanimation(event:mouseevent):void{ gotoandstop(10); }
edit
import flash.events.mouseevent; stop(); //homepage home_btn.addeventlistener(mouseevent.click, gohome); flashworks_btn.addeventlistener(mouseevent.click, goflashworks); aboutdev_btn.addeventlistener(mouseevent.click, goaboutdev); //flashworks basicanimation_btn.addeventlistener(mouseevent.click, gobasicanimation); layersandsymbols_btn.addeventlistener(mouseevent.click, golayersandsymbols); interactive_btn.addeventlistener(mouseevent.click, gointeractivebutton); //about developer profile1_btn.addeventlistener(mouseevent.click, goprofile1); profile2_btn.addeventlistener(mouseevent.click, goprofile2); //basic animation shapetween_btn.addeventlistener(mouseevent.click, goshapetween); motiontween_btn.addeventlistener(mouseevent.click, gomotiontween); classictween_btn.addeventlistener(mouseevent.click, goclassictween); back_flashworks_btn.addeventlistener(mouseevent.click, goback_flashworks); //layers , symbols guidelayer_btn.addeventlistener(mouseevent.click, goguidelayer); masklayer_btn.addeventlistener(mouseevent.click, gomasklayer); //amazing effect button amazingbuttoneffect_btn.addeventlistener(mouseevent.click, gobuttoneffect); //function home page function gohome(event:mouseevent):void{ gotoandstop(1); } function goflashworks(event:mouseevent):void{ gotoandstop(2); } function goaboutdev(event:mouseevent):void{ gotoandstop(3); } //function flashworks function gobasicanimation(event:mouseevent):void{ gotoandstop(10); } function golayersandsymbols(event:mouseevent):void{ gotoandstop(11); } function gointeractivebutton(event:mouseevent):void{ gotoandstop(12); } //function developer function goprofile1(event:mouseevent):void{ gotoandstop(13); } function goprofile2(event:mouseevent):void{ gotoandstop(14); } //basic animation function function goshapetween(event:mouseevent):void{ gotoandstop(20); } function gomotiontween(event:mouseevent):void{ gotoandstop(21); } function goclassictween(event:mouseevent):void{ gotoandstop(22); } function goback_flashworks(event:mouseevent):void{ gotoandstop(2); } //layers , symbols function function goguidelayer(event:mouseevent):void{ gotoandstop(23); } function gomasklayer(event:mouseevent):void{ gotoandstop(24); } //interactive button function function gobuttoneffect(event:mouseevent):void{ gotoandstop(25); }
thank you, managed solve problem. turns out need separate action script of buttons in different frames in project, because first thing did before solved put button instances in 1 frame of action script layer.
Comments
Post a Comment