I have a small chess application consisting of cells and boards. When a user moves an item to the board, I want the board cell to send an event so that the Board can listen to it and call the listener.
public class BoardCell extends Canvas { public function Sample():void { ....Some code var e:Event = new Event("newMove") dispatchEvent(e); } }
However, I canβt catch the event in the parent class of the chessboard (not sure if I am listening to it correctly)
public class FrontEndBoard extends ChessBoard { private var initialPoition:String; public function FrontEndBoard() {
flex actionscript-3
Oleg Tarasenko
source share