thcmedia / papervision3d

Automatically exported from code.google.com/p/papervision3d
0 stars 0 forks source link

Error #1034 when MouseOver <img> of TextField #254

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a MovieClip with A TextField that has a Picture in it by using
the .html property and the <img> tag

2. Make MovieMaterial form MoviClip for 3d Object 

3. MouseOver the Picture of the TextField you get Error #1034

What is the expected output? What do you see instead?
no Error, an Error

What version of the product are you using? On what operating system?
2.1.932

Please provide any additional information below.
TypeError: Error #1034: Type Coercion failed: cannot convert
flash.text::TextField@11e9a089 to flash.display.DisplayObjectContainer.
    at
org.papervision3d.core.utils.virtualmouse::VirtualMouse/handleUpdate()[C:\Users\
Dave\Documents\Flex
Builder
3\NewCarDrive\src\org\papervision3d\core\utils\virtualmouse\VirtualMouse.as:619]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
org.papervision3d.core.utils.virtualmouse::VirtualMouse/update()[C:\Users\Dave\D
ocuments\Flex
Builder
3\NewCarDrive\src\org\papervision3d\core\utils\virtualmouse\VirtualMouse.as:562]
    at
org.papervision3d.core.utils.virtualmouse::VirtualMouse/setLocation()[C:\Users\D
ave\Documents\Flex
Builder
3\NewCarDrive\src\org\papervision3d\core\utils\virtualmouse\VirtualMouse.as:354]
    at
org.papervision3d.core.utils::InteractiveSceneManager/handleEnterFrame()[C:\User
s\Dave\Documents\Flex
Builder
3\NewCarDrive\src\org\papervision3d\core\utils\InteractiveSceneManager.as:303]

Original issue reported on code.google.com by davesam...@aip-wohnen.de on 8 Feb 2010 at 9:34

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
My solution:
org.papervision3d.core.utils.virtualmouse in line 619 add right in front of the 
else if:
else if (currentTarget && currentParent is TextField)
                    {
                        currentTarget = InteractiveObject(currentParent);
                    }

and import flash.text.TextField; at the top of the class (line 9)

Original comment by davesam...@aip-wohnen.de on 12 Feb 2010 at 11:11