dancar812002 / papervision3d

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

Flex Component as a Material Scrollbars NOT working #189

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Just compile this mxml flex application using flex

What is the expected output? What do you see instead?

You would expect all of the flex components to be working properly when
they are MovieMaterial, however the scrollbar isn't working (the buttons
are working, as well as the slider)

What version of the product are you using? On what operating system?
I am using windows XP and papervision (latest from the repository revision 904)

Please provide any additional information below.

I started digging about a solution, seemed like nobody knows solution and
people are pretending like you don't need scrollbars. However with a little
more debugging I found the solution.

In the file VirtualMouse.as in the lines 584-590 the problem is with the
changing of the position of the container, so my solution is to modify that
lines to

            //originalPoint.x = container.x;
            //originalPoint.y = container.y;
            //container.x = container.y = 0;
            var stagePointer:Point = container.localToGlobal(location);
            var objectsUnderPoint:Array = container.getObjectsUnderPoint(stagePointer);

            //container.x = originalPoint.x;
            //container.y = originalPoint.y;

I attached the fixed version of VirtualMouse.as (I tried to commit the fix
but don't have access to the svn)

Original issue reported on code.google.com by aleks...@gmail.com on 23 Apr 2009 at 9:42

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks so much for this.  I've spent a week trying to get this to work without 
making the above change.  As soon 
as any child of the movieMaterial is larger that the plane, or a child inside 
the movieMaterial is largr than the 
movieMaterial itself (or the extends past the bounds of the plane) the 
interactivity is lost.

Original comment by corwin.d...@gmail.com on 2 Oct 2009 at 3:09

GoogleCodeExporter commented 8 years ago
Although this activates the scrollbar, any child components of the container 
using the scrollbar, work incorrectly 
in flash player on Windows XP.  About every 1 in 3 mouse clicks fail on any 
child component.  It works fine in 
Safari/FireFox on Mac. 

Original comment by corwin.d...@gmail.com on 16 Oct 2009 at 5:15