Actionscript 3.0 - Custom Events with Parameters
问题 Is there any simple -- or suggested -- way in order to send a parameter along with a custom event? Or even just a way to pass variables between two classes? My program is a sort of simple Civ/Age of Empires kind of game, where you can place buildings on tiles. This would work as follows: Player clicks on the icon on the HUD, which creates an dispatches an event which is received by the PLAYER class. The PLAYER class changes a value depending on which building is held (clicked on). Player