I'm not sure I'm getting it but Maybe you need a weapons event class package WeaponEvents{ import flash.events.Event;
[Event(name="sword1", type="event.sword1")]
[Event(name="sword2", type="event.sword2")]
public class SwordEvent extends Event
{
public static const SWORD_1 : String = "sword1";
public static const SWORD_2 : String = "sword2";
public var arg:*;
public function SwordEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, ... a:*) {
super(type, bubbles, cancelable);
arg = a;
}
// Override clone override public function clone():Event{ return new LoadEvent(type, bubbles, cancelable, arg); } } }
Just add the event to when your user chagnes weapons.