event.dragSource.hasFormat for controls
i'm trying implement drag , drop feature custom controls. know i've use event.dragsource.hasformat("img") image. format datefield , other controls ? can answer following please.
event.dragsource.hasformat("radio") radio button
event.dragsource.hasformat("img") image
event.dragsource.hasformat("checkbox") check box
event.dragsource.hasformat("button") button
event.dragsource.hasformat("txt") textinput
what should values following
event.dragsource.hasformat( ? ) radiobuttongroup
event.dragsource.hasformat( ? ) textarea
event.dragsource.hasformat( ? ) richtexteditor
event.dragsource.hasformat( ? ) list
event.dragsource.hasformat( ? ) numericstepper
event.dragsource.hasformat( ? ) datefield
event.dragsource.hasformat( ? ) video display
event.dragsource.hasformat( ? ) combobox
event.dragsource.hasformat( ? ) colorpicker
thanks in advance.
-ravi
hi,
you don't have use "img" image, hasformat set when drop object can determine want happen, instance if have page framed photo, can drag either photoframe or image onto object, set hasformat "image" target knows data image, set hasformat "frame" border target knows data consists of photo frame.
also might want drag icon on target , when 'drop' icon want checkbox added i set hasformat=checkbox there no real data use drag properties determine operation want add checkbox target.
this isn't functional code -its give logic of above statement.
if (hasformat="checkbox")
{
var chkbox: chkbox = new checkbox;
target.addchild(chkbox);
}
david.
More discussions in Flex (Read Only)
adobe
Comments
Post a Comment