开发者

DragManager problem when loading flex app into flash app

开发者 https://www.devze.com 2022-12-12 09:15 出处:网络
I have a flex application which use DragManager. When I\'m loading this application into flash application

I have a flex application which use DragManager. When I'm loading this application into flash application and trying to use drag'n'drop functions - I get an error:

TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.managers::CursorManagerImpl/showCurrentCursor() at mx.managers::CursorManagerImpl/setCursor() at mx.managers.dragClasses::DragProxy/showFeedback() at mx.managers.dragCla开发者_运维知识库sses::DragProxy/mouseMoveHandler()

But, when I simply run a flex application (not loding it into a flash one) everything works properly.


A brief look at the said method CursorManagerImpl/showCurrentCursor() shows that it accesses many Flex-specific properties such as systemManager.stage, systemManager.document, Application.application etc. Since you are loading a flex app into a Flash movie, may be some of these flex-specific parameters are not initialized properly.

0

精彩评论

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