Hi, i’m trying to teach me some flash i’ve done some .net programming mostly data Analysis and control program for lab equipment, well now to the point.
I’m trying to make a little strategy game. And i’ve made a class that displays a menu when you click on a city it also controls what’s shown in that menu basically display data that’s in the “city” class. I haven’t used classes before for anything except storing data so i had problems adding the menu to the stage but fixed it by adding everything that was null as an argument.
public function build_menu(e:MouseEvent,info_format:TextFormat,c_menu:MovieClip,STAGE:Stage):void {here is code}
It’s works now but i’m wondering if there are better ways to do this.
I tried parent.stage but that didn’t work.
Thnx in advance.