Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

_dragInitiator should be assigned to event.currentTarget #2

Open
GoogleCodeExporter opened this issue Aug 7, 2015 · 0 comments
Open

Comments

@GoogleCodeExporter
Copy link

Once DnDManager.doDrag is called from an event triggered by a complicated 
component, it would throw up something like:

x.core::UITextField@###### can not be converted to mx.core.UIComponent

that was because event.target is the precise element user drags, and it may 
not be an UIComponent. I think the solution is change line 74 of 
DnDManager.as:

    _dragInitiator = UIComponent(evt.target);

to:

    _dragInitiator = UIComponent(evt.currentTarget);

Original issue reported on code.google.com by bige...@gmail.com on 29 Oct 2009 at 8:59

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant