<?xml version=
"1.0"
?
encoding=
"utf-8"
?>
<mx:Application xmlns:mx=
"http://www.adobe.com/2006/mxml"
?
layout=
"horizontal"
?
horizontalScrollPolicy=
"off"
?
verticalScrollPolicy=
backgroundGradientAlphas=
"0.5"
?
backgroundGradientColors=
"black"
?
color=
"#FFFFFF"
?
backgroundColor=
"#FFFFFF"
>
????
<mx:Script>
?
<![CDATA[
????
import
?
mx.events.ListEvent;
??
??
var
?
oldx,oldy:
Number
;
??
function
?
mouseMove(event:MouseEvent):
void
{
???
if
(event.buttonDown){
???
x:
=event.stageX-oldx;
y:
=event.stageY-oldy;
???
oldx=event.stageX;?
oldy=event.stageY;
p.move(p.x+x,p.y+y);
}
??
}
???
??
private
?
mouseDown(event:MouseEvent):
{
CursorManager.removeAllCursors();
cursorID = CursorManager.setCursor(BugDeleteIcon);
oldx=event.stageX;
oldy=event.stageY;
?
}
???
mouseUp(event:MouseEvent):
{
CursorManager.removeAllCursors();
cursorID = CursorManager.setCursor(BugIcon);
}
]]>
</mx:Script>
<mx:Script >
????????
<![CDATA[
????????????
mx.managers.CursorManager;
??
????????????
[Bindable]
[Embed(source=
"img/zhang.png"
)]
private
?
BugIcon:Class;
??
[Bindable]
"img/quan.png"
)]
BugDeleteIcon:Class;
??
cursorID:
int
;
]]>
</mx:Script >
?
?
<mx:Panel id=
"p"
?
x=
"180"
?
y=
"128"
?
width=
"1589"
?
height=
"1640"
?
"absolute"
?
title=
"上海地铁总平面图"
?
mouseMove=
"mouseMove(event)"
mouseDown=
"mouseDown(event)"
??
mouseUp=
"mouseUp(event)"
??
backgroundImage=
"@Embed(source='img/mapnew.gif')"
?
borderThicknessLeft=
"0"
?
borderThicknessRight=
"0"
borderThicknessTop=
rollOver=
"cursorID = CursorManager.setCursor(BugIcon);"
?
rollOut=
"CursorManager.removeCursor(cursorID);"
?
fontSize=
"12"
?
"#1F5DB2"
?
backgroundSize=
"100%"
>
</mx:Panel>
</mx:Application>