laoniusanche / papervision3d

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

TextField on embeded swf MovieClipMaterial does not activate on Click #256

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. embed an SWF with a TextField make it a MovieClipMaterial
2. use it on a PV3D Object

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

If you click on the TextField it does not get Active.

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

PV3D 2.1.932 / VISA 64 Bit Ultimate

Please provide any additional information below.

My solution:
In org.papervision3d.core.utils.virtualmouse in line ~745 right before "//
clear last down" add:
if(currentTarget is TextField && currentTarget == lastDownTarget){
                        stage.focus = currentTarget;
                    }

and import flash.text.TextField; at the top of the Class.

maybe also check for issue 254.

Original issue reported on code.google.com by davesam...@aip-wohnen.de on 12 Feb 2010 at 1:46

GoogleCodeExporter commented 9 years ago
Oh, I am talking about the Input TextField of course...

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

GoogleCodeExporter commented 9 years ago
better Solution at this point is:
if(currentTarget is TextField && TextField(currentTarget).type == "input"){
                        stage.focus = currentTarget;
                    }
makes sure that the TextField is of Type input so it doesnt scroll TextFields 
that
are not of that type.

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

GoogleCodeExporter commented 9 years ago
This is ok to input in the textfield, but how to select text inside the 
textfield?

This flash template can do it (go to "contacts" through the button at the top 
of the
flash): http://www.templatemonster.com/flash-templates/20361.html
Also here: www.nelsondesignllc.com

See also this discussion:
http://mail.flashcodersny.org/pipermail/flashcodersny_flashcodersny.org/2009-Sep
tember/012783.html

Original comment by kke...@gmail.com on 25 Feb 2010 at 5:08