Flex测试工具--FlexSpy使用方法
在家上网赚钱更容易
2、添加后,参照输入下面代码:
<?xml?version="1.0"?encoding="utf-8"?>
<mx:Application?xmlns:mx="http://www.adobe.com/2006/mxml"?layout="absolute">
??????<mx:Script>
?????<![CDATA[
?????????import?mx.core.FlexSprite;
?????????import?mx.effects.easing.Bounce;
?????????import?mx.controls.Alert;????????
?????????import?com.flexspy.*;
?????????
?????????public?function?initApp():void
?????????{
???????????????????FlexSpy.registerKey(new?KeySequence(123,?true,?false,?false));
???????????????????FlexSpy.registerJS();
???????????????????this.btnFlexSpy.setFocus();
?????????}
?????????????
????????public?function?debug():void
????????{
??????????????????FlexSpy.show();
?????????}
????????????
????]]>
???????</mx:Script>
???????<mx:Label?x="255"?y="55"?text="Label"?width="115"?height="70"/>
???????<mx:LinkButton?x="477"?y="53"?id="btnFlexSpy"?label="LinkButton"?click="debug()"/>
</mx:Application>
3、注意红色部分的代码是必须的,运行后,点击“LinkButton”按钮就会进入调试状态,调试状态下,可以对正在运行的程序进行实时的查看、修改和更新操作,非常方便。
在家上网赚钱更容易