특별한딸기이야기
drag & drop 본문
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
private function onMouseDown(event : MouseEvent) : void
{
txtDrag.startDrag();
}
private function onMouseUp(event : MouseEvent) : void
{
txtDrag.stopDrag();
}
]]>
</mx:Script>
<mx:Text x="79" y="101" text="DragMe!" fontSize="12" id="txtDrag" mouseDown="onMouseDown(event)" mouseUp="onMouseUp(event)" />
</mx:Application>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
private function onMouseDown(event : MouseEvent) : void
{
txtDrag.startDrag();
}
private function onMouseUp(event : MouseEvent) : void
{
txtDrag.stopDrag();
}
]]>
</mx:Script>
<mx:Text x="79" y="101" text="DragMe!" fontSize="12" id="txtDrag" mouseDown="onMouseDown(event)" mouseUp="onMouseUp(event)" />
</mx:Application>
'딸기 공부방 > flex' 카테고리의 다른 글
datagrid, advancedatagrid (1) | 2008.12.27 |
---|---|
tree-xml (1) | 2008.12.27 |
horizontallist, tilelist (0) | 2008.12.26 |
combobox (0) | 2008.12.26 |
listbox (0) | 2008.12.26 |