noevil

感觉稍稍还算不错的方法:

 

 

import mx.core.UIComponent;

private function appStartMove(event:Event):void
{
	var component:UIComponent=event.currentTarget as UIComponent
	component.startDrag();
}

private function appStopMove(event:Event):void
{
	var component:UIComponent=event.currentTarget as UIComponent
	component.stopDrag();				
}

 

控件:

 

	<mx:Panel width="250"
			  height="200"
			  layout="absolute"
			  x="365"
			  y="10"
			  mouseDown="appStartMove(event)"
			  mouseUp="appStopMove(event)"
			  id="Hello"
			  title="Hello">

	</mx:Panel>

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-01-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2023-04-06
  • 2021-10-25
猜你喜欢
  • 2021-04-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-19
相关资源
相似解决方案