开发者

Using Log4Fx to log button clicks in states in Flex application

开发者 https://www.devze.com 2023-01-25 12:12 出处:网络
I want to use Log4Fx to log button clicks from开发者_StackOverflow 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

I want to use Log4Fx to log button clicks from开发者_StackOverflow 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?


I would think it would look something like:

<mx:LinkButton label=”Hello world again!” click=”logger.info("ButtonNameHere -- state: " + currentState);”/>
0

精彩评论

暂无评论...
验证码 换一张
取 消