These strings are being produced by the
toString() method of UIComponent. I'm not sure what makes them end in null, but
you shouldn't depend on the details of a component's toString() ... it's likely
to change before we ship.
The array returned by getObjectsUnderPoint()
doesn't contain these strings; it contains references to the UIComponents. Try
using the 'is' operator to determine which one is the TEOTaskPane.
Also, try tracing the className property of
each instance to make sure which one is really the TEOTaskPane.
- Gordon
Hello,
I am creating a component to component drag,drop implementation.
I have been using this getObjectsUnderPoint method, works but I have a
question;
Application_5.HBox0.null
Application_5.HBox0.pane2:TEOTaskPane.null
Application_5.HBox0.pane2:TEOTaskPane.list5:TEOTaskList.VBox_117.null
Application_5.HBox0.pane2:TEOTaskPane.list5:TEOTaskList.VBox_117.VBox_202.null
Application_5.HBox0.pane2:TEOTaskPane.list5:TEOTaskList.VBox_117.VBox_202.label_lb:Label.UITextField_204
"Rename this file"
When it returns the list above, why are there nulls pasted on the end of each
of the "instance" refs.??
This is screwing me up, what should have been a simple, roll through the list
and find the instanceof TEOTaskPane, it has become a nightmare where it is not
working the way I would "expect".
For an example,
:: Application_5.HBox0.pane2:TEOTaskPane.null
is the reference I am trying to grab with the instanceof operator. No, like,
the loop just passes it up!
Any advice?
PS, I myself honestly have no idea if the null issue has anything to do with me
not being able to grab the correct instance ref.
Peace, Mike
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS