-
1. Re: Selection.getFocus()
Ned Murphy Oct 17, 2013 2:52 PM (in response to Ron Colmen)What do you get if you use trace(Selection.getFocus()); Does it agree with the findings of your other trace as far as the "tf" position goes?
-
2. Re: Selection.getFocus()
Ron Colmen Oct 17, 2013 3:03 PM (in response to Ned Murphy)Yes.
There is a typo in my above post. The path to the TFs are as below.
trace:
_level0.main_mc.tf_mc_1.tf
_level0.main_mc.tf_mc_2.tf
_level0.main_mc.tf_mc_3.tf...
-
3. Re: Selection.getFocus()
Ned Murphy Oct 17, 2013 3:59 PM (in response to Ron Colmen)I don't see how it traces 27 since that is not where it is in that string... if it is tracing the one at the end it's more like 24, but there's one at 16 that should be reported instead.
-
4. Re: Selection.getFocus()
Ron Colmen Oct 17, 2013 4:14 PM (in response to Ned Murphy)oh! sorry. you're correct.
I was experementing and had changed mc instances from the first post.
the trace output is as for
_level0.main_mc.tf_mc_1.tf
_level0.main_mc.tf_mc_2.tf
_level0.main_mc.tf_mc_3.tf...
is
16
16
16 ...
-
5. Re: Selection.getFocus()
Ned Murphy Oct 18, 2013 4:40 AM (in response to Ron Colmen)As far as your asking whether this is the way to go, it isn't if this is all you have going for it, though it can be used as part of that scheme. If you already have the part that decides when to check if a textfield is being used then then you should be good to go (as long as nothing else uses "tf" in its path)
-



