Flex 多线程 求解 在线等在网上看到FLex用 AsyncThreading_2.1.swc 可以实现多线程地址如下:http://blog.s
Flex 多线程 求解 在线等
在网上看到 FLex 用 AsyncThreading_2.1.swc 可以实现多线程
地址如下:http://blog.sina.com.cn/s/blog_4cfe78830100imuo.html
我自己写的代码 如下
Java codepackage com.thread{ import com.symantec.premiumServices.asyncThreading.abstract.AbstractAsyncThread; import com.symantec.premiumServices.asyncThreading.interfaces.IAsyncThreadResponder; public class AsyncThreading extends AbstractAsyncThread implements IAsyncThreadResponder { public function AsyncThreading() { super(); super.priority = super.RUN_LEVEL_REAL_TIME; } public function execute():void{ } }}
但是 我的代码里执行 var threading:AbstractAsyncThread=new AsyncThreading();的时候就报错
报错信息:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.symantec.premiumServices.asyncThreading.handlers::FPSObserverHandler/http://www.symantec.com/premiumServices/asyncThreading::startUp()[/Users/rimbey/Documents/sharedCodeBase/perforceTronic/depot/Premium_Services/libraries/actionscript/AsyncThreading/trunk/lib/src/com/symantec/premiumServices/asyncThreading/handlers/FPSObserverHandler.as:101]
at com.symantec.premiumServices.asyncThreading::AsyncThreadingManager/http://www.symantec.com/premiumServices/asyncThreading::initialize()[/Users/rimbey/Documents/sharedCodeBase/perforceTronic/depot/Premium_Services/libraries/actionscript/AsyncThreading/trunk/lib/src/com/symantec/premiumServices/asyncThreading/AsyncThreadingManager.as:142]
at com.symantec.premiumServices.asyncThreading::AsyncThreadingManager$/getInstance()[/Users/rimbey/Documents/sharedCodeBase/perforceTronic/depot/Premium_Services/libraries/actionscript/AsyncThreading/trunk/lib/src/com/symantec/premiumServices/asyncThreading/AsyncThreadingManager.as:110]
at com.symantec.premiumServices.asyncThreading.abstract::AbstractAsyncThread()[/Users/rimbey/Documents/sharedCodeBase/perforceTronic/depot/Premium_Services/libraries/actionscript/AsyncThreading/trunk/lib/src/com/symantec/premiumServices/asyncThreading/abstract/AbstractAsyncThread.as:152]
at com.thread::AsyncThreading()[D:\Adobe Flash Builder 4\socket\src\com\thread\AsyncThreading.as:11]
at SocketServerTest/asdf()[D:\Adobe Flash Builder 4\socket\src\SocketServerTest.mxml:129]
at SocketServerTest/___SocketServerTest_Button5_click()[D:\Adobe Flash Builder 4\socket\src\SocketServerTest.mxml:147]
在线等 求解!最好能贴出一段Flex 多线程的 代码 谢谢了!
[解决办法]Flex绝对没有多线程概念!
就算有也只是模拟多线程!
[解决办法]错误的意思是 有一个参数 或者方法为空 LZ自己好好检查一下 是不是调错方法了
[解决办法]lz要做聊天功能吗?
http://hacker47.javaeye.com/
他的博客上写过,不知道对lz有没有帮助
[解决办法]没有多线程的,仿的我都没看到过,有空研究下...
[解决办法]Flex3应该是可以的吧
[解决办法][解决办法]有创意