I’m doing everything by the book (I think), I’ve reviewed this problem multiple times, but I can’t seem to get it fixed. The creationCompleteHandler function is b
protected function creationCompleteHandler(event:FlexEvent):void
{
btnRequest.addEventListener(MouseEvent.CLICK, readData);
}
protected function readData():void
{
Alert.show("check check");
}
Add event as argument to your listener:
or better write button click listener and call
readData()from it.