actionscript 3 - Shared back button in a menu AS3 flash -
hi i'm making main menu , problem i've run regarding button. i'm using same button navigate throughout submenus of main menu.
i need know how determine submenu of menu @ given time, can alter playhead appropriate label instead of going original main menu label time.
var submenu:displayobject = this.getchildbyname("mc_submultiplayer"); if (boolean(this.contains(submenu))){ this.gotoandplay(49); } else{ movieclip(parent).gotoandplay("goback"); }
i've tried variations of no avail :c
i think need manually maintain track of menu user on , react accordingly. few ways, such hard coding every single sub menu parent menu go (not recommended) or keeping list or stack of menu buttons user has pressed create 'trail' can backtrack, or maybe maintain track of menu ids (same idea, keeping track of menus instead of button presses, may more cleaner , intuitive).
actionscript-3 flash-cs5
No comments:
Post a Comment