Question

I want to use Log4Fx to log button clicks from a state as i have a state based application with transitions. So on each button click I want to log which state was the user in while he clicked the button because the state change happens on a button click. Can someone suggest a code snippet?

Was it helpful?

Solution

I would think it would look something like:

<mx:LinkButton label=”Hello world again!” click=”logger.info("ButtonNameHere -- state: " + currentState);”/>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top