Clicking an interactive Plane in Flex throws error

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Clicking an interactive Plane in Flex throws error

Omer Hassan
Hi,

I am working on a game in which there are several Plane objects that the player can click. My main application class extends the BasicView class. I made this whole game as an ActionScript project and everything works fine when I run it as one.

Now I embed this game in a Flex application. When embedded, it runs perfectly until I click somewhere at which point it throws this error:

undefined
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at org.papervision3d.core.utils.virtualmouse::VirtualMouse/update()[D:\Omer Hassan\our5pillars\repository\flash\game\src\org\papervision3d\core\utils\virtualmouse\VirtualMouse.as:562]
    at org.papervision3d.core.utils.virtualmouse::VirtualMouse/press()[D:\Omer Hassan\our5pillars\repository\flash\game\src\org\papervision3d\core\utils\virtualmouse\VirtualMouse.as:451]
    at org.papervision3d.core.utils::InteractiveSceneManager/handleMousePress()[D:\Omer Hassan\our5pillars\repository\flash\game\src\org\papervision3d\core\utils\InteractiveSceneManager.as:189]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.managers::SystemManager/mouseEventHandler()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\SystemManager.as:2924]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at org.papervision3d.core.utils.virtualmouse::VirtualMouse/handleUpdate()[D:\Omer Hassan\our5pillars\repository\flash\game\src\org\papervision3d\core\utils\virtualmouse\VirtualMouse.as:724]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at org.papervision3d.core.utils.virtualmouse::VirtualMouse/update()[D:\Omer Hassan\our5pillars\repository\flash\game\src\org\papervision3d\core\utils\virtualmouse\VirtualMouse.as:562]
    at org.papervision3d.core.utils.virtualmouse::VirtualMouse/press()[D:\Omer Hassan\our5pillars\repository\flash\game\src\org\papervision3d\core\utils\virtualmouse\VirtualMouse.as:451]
    at org.papervision3d.core.utils::InteractiveSceneManager/handleMousePress()[D:\Omer Hassan\our5pillars\repository\flash\game\src\org\papervision3d\core\utils\InteractiveSceneManager.as:189]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.managers::SystemManager/mouseEventHandler()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\SystemManager.as:2924]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at org.papervision3d.core.utils.virtualmouse::VirtualMouse/handleUpdate()[D:\Omer Hassan\our5pillars\repository\flash\game\src\org\papervision3d\core\utils\virtualmouse\VirtualMouse.as:724]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at org.papervision3d.core.utils.virtualmouse::VirtualMouse/update()[D:\Omer Hassan\our5pillars\repository\flash\game\src\org\papervision3d\core\utils\virtualmouse\VirtualMouse.as:562]
    at org.papervision3d.core.utils.virtualmouse::VirtualMouse/press()[D:\Omer Hassan\our5pillars\repository\flash\game\src\org\papervision3d\core\utils\virtualmouse\VirtualMouse.as:451]
    at org.papervision3d.core.utils::InteractiveSceneManager/handleMousePress()[D:\Omer Hassan\our5pillars\repository\flash\game\src\org\papervision3d\core\utils\InteractiveSceneManager.as:189]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.managers::SystemManager/mouseEventHandler()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\SystemManager.as:2924]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at org.papervision3d.core.utils.virtualmouse::VirtualMouse/handleUpdate()[D:\Omer Hassan\our5pillars\repository\flash\game\src\org\papervision3d\core\utils\virtualmouse\VirtualMouse.as:724]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at org.papervision3d.core.utils.virtualmouse::VirtualMouse/update()[D:\Omer Hassan\our5pillars\repository\flash\game\src\org\papervision3d\core\utils\virtualmouse\VirtualMouse.as:562]
    at org.papervision3d.core.utils.virtualmouse::VirtualMouse/press()[D:\Omer Hassan\our5pillars\repository\flash\game\src\org\papervision3d\core\utils\virtualmouse\VirtualMouse.as:451]
    at org.papervision3d.core.utils::InteractiveSceneManager/handleMousePress()[D:\Omer Hassan\our5pillars\repository\flash\game\src\org\papervision3d\core\utils\InteractiveSceneManager.as:189]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.managers::SystemManager/mouseEventHandler()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\SystemManager.as:2924]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at org.papervision3d.core.utils.virtualmouse::VirtualMouse/handleUpdate()[D:\Omer Hassan\our5pillars\repository\flash\game\src\org\papervision3d\core\utils\virtualmouse\VirtualMouse.as:724]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at org.papervision3d.core.utils.virtualmouse::VirtualMouse/update()[D:\Omer Hassan\our5pillars\repository\flash\game\src\org\papervision3d\core\utils\virtualmouse\VirtualMouse.as:562]
    at org.papervision3d.core.utils.virtualmouse::VirtualMouse/press()[D:\Omer Hassan\our5pillars\repository\flash\game\src\org\papervision3d\core\utils\virtualmouse\VirtualMouse.as:451]
    at org.papervision3d.core.utils::InteractiveSceneManager/handleMousePress()[D:\Omer Hassan\our5pillars\repository\flash\game\src\org\papervision3d\core\utils\InteractiveSceneManager.as:189]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.managers::SystemManager/mouseEventHandler()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\SystemManager.as:2924]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at org.papervision3d.core.utils.virtualmouse::VirtualMouse/handleUpdate()[D:\Omer Hassan\our5pillars\repository\flash\game\src\org\papervision3d\core\utils\virtualmouse\VirtualMouse.as:724]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at org.papervision3d.core.utils.virtualmouse::VirtualMouse/update()[D:\Omer Hassan\our5pillars\repository\flash\game\src\org\papervision3d\core\utils\virtualmouse\VirtualMouse.as:562]
    at org.papervision3d.core.utils.virtualmouse::VirtualMouse/press()[D:\Omer Hassan\our5pillars\repository\flash\game\src\org\papervision3d\core\utils\virtualmouse\VirtualMouse.as:451]
    at org.papervision3d.core.utils::InteractiveSceneManager/handleMousePress()[D:\Omer Hassan\our5pillars\repository\flash\game\src\org\papervision3d\core\utils\InteractiveSceneManager.as:189]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at mx.managers::SystemManager/mouseEventHandler()[E:\dev\hero_private\frameworks\projects\framework\src\mx\managers\SystemManager.as:2924]
    at flash.events::EventDispatcher/dispatchEventFunction()


Any ideas on how to fix this?

Best regards,

Omer Hassan

_______________________________________________
Papervision3D mailing list
[hidden email]
http://osflash.org/mailman/listinfo/papervision3d_osflash.org