i have a flex action script web app, i which i am adding a custom item in context menu to copy the link of the post.
- the link that is copied is made internal to the app using deep linking
- i am using a UItextfield to show some titles of posts and a UIComponent is containing it only to show the hand cursor on title field
- the title field when right click the user can copy the link of the post
- the title field has
mousechildren = falseanduicomponentcontaining it hasbuttonmode = true
Problem:
when user copy the link of the post by right click, the ctrl+v will not work then for a single time and on pressing another time it works normally, only 1 time after copy link it is missed, i get the event of ctrl+v but it do not paste text in any text field in my app.
i found the other copy paste works nice only copy link will produce this problem and even after copy link i can paste by right click paste,
i also found the if i press any single key in any text field this problem will not occur and every thing works fine
i also tried by mousechildren = true for title text field it then works fine.
i have this problem only when mousechildren = false for title field and then right click copy link and want to directly paste then link in any text field without any key press in any text field
i am not able to understand this behavior help required
regards
i find this and solved the problem
mouseChildren = falsethe flash player can’t find the component under the cursor as i contains the text field in a uicomponent and text fields mouse children is false so flash player gets the component under cursor as uicomponentmouseChildren = truethis issue is solved and every thing works fineMouse.cursor = MouseCursor.AUTO;andMouse.cursor = MouseCursor.BUTTONas per need it solves this problem