flex无法断点调试的解决办法
犯了一个极低的错误,这个原因是自己造成的,是自己把
改为本地自己即可,
查了些英文网站的解决方案,说是什么系统升级,诺顿杀毒软件问题,都不是自己要的答案,是自己以前不小心改了,后来无论怎么卸载、升级、重装flash插件都一个样
http://hi.baidu.com/phperbo/blog/item/bf77fefb29a73b1e6d22ebe4.html
老是遇见这个问题。又的时候是重启动机子得以解决。
解决方法:
问题:
failed to connect session timed out.
ensure that
1. you compiled your flash application with debugging on.
2. you are running the debugger version of flash player.
用一个程序测试一下
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
<mx:Script>
<![CDATA[
import flash.system.Capabilities;
private function reportVersion():String {
if (Capabilities.isDebugger) {
return "You are running the Debugger version of the Flash Player";
} else {
return "You are running the Non-Debugger version of the Flash Player";
}
}
private function reportType():String {
return Capabilities.playerType + " (" + Capabilities.version + ")";
}
trace("123");
]]>
</mx:Script>
<mx:Label text="{reportVersion()}"/>
<mx:Label text="{reportType()}"/>
</mx:Application>
看是否按装debug。另一个问题好像是病毒问题,我的机子上不装杀毒软件。这个可以排除
我以前装的是flash player 9但是我的机子老是打补定的。http://www.adobe.com/support/flashplayer/downloads.html
现在还不知道 flash 9和10的差别 。
下载 flash_debug 10;
install 完毕
console 输出
123
[SWF] C:\Documents and Settings\Administrator\My Documents\Flex Builder 3\test12\bin-debug\test12.swf - 563,178 bytes after decompression
相关文档:
flex滚动条虽然很好用,但总是会出现意想不到的问题。前几天说了,拖动后花屏的问题,今天又发现了更恶心的问题。当你把容器的宽度调为100%后 ,verticalScrollbarPolicy 用默认的auto。这是如果你缩放窗口会出现滚动条,但问题这是就出现了,只要出现了垂直滚动条,水平滚动条就是被迫出现。
<?xml version="1.0" enco ......
这样的一种情况:
使用Loader去load一个swf:
var fileURL:String = “assets/test.swf”
var swfLoader:Loader = new Loader();
swfLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, swfLoaded);
swfLoader.load(new URLRequest(fileURL));
function swfLoaded(evt:Event):void{
&n ......
<?xml version="1.0"?>
<!-- charts/PredefinedAxisStyles.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<!--[CDATA[
//导入相关包
import mx.collections.ArrayCollection;
import mx.charts.*;
import mx.charts.ser ......
Are you running your Flex Application and continually getting the error below?
"Flex Builder cannot locate the required version of the Flash Player. You might need to install Flash Player 9 or reinstall Flex Builder. Do you want to try to run your application with the current version?"
Description ......
Flex中通过继承可以为新组件增加新的功能,如通过注入方法,改变背景色,改变位置和高度等。这里主要掌握原组件的一些特性,属性和方法,以便根据需要的功能加以覆写(也可以自己扩展),达到自己想要的效果。下面是一个简单的例子
1、新建MyDataGrid.as,继承DataGrid,覆写drawRowBackground方法,注入rowColorFunction方 ......