1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
<?xml version="1.0" encoding="utf-8"?>
<mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml" height="30" paddingTop="2" paddingBottom="3" rollOut="doZoom(event)" rollOver="doZoom(event)">
<mx:Script>
<![CDATA[
import mx.resources.ResourceManager;
public function doZoom(event:MouseEvent):void {
trace(event.type,"---",event.target,"-----",event.eventPhase,"----",event.currentTarget);
if (zoomAll.isPlaying && event.type == MouseEvent.ROLL_OVER) {
return;
}
else {
// If this is a ROLL_OUT event, play the effect backwards.
// If this is a ROLL_OVER event, play the effect forwards.
zoomAll.play([this], event.type == MouseEvent.ROLL_OUT ? true : false);
}
}
]]>
</mx:Script>
<mx:Image height="25" width="25" source="@Resource(key='icon_open', bundle='dataSelector')" id="image7" toolTip="@Resource(key='ktpOpen', bundle='dataSelector')" />
<mx:VRule height="27" width="3" id="vrule3"/>
<mx:Image height="25" width="25" source="@Resource(key='icon_new_item', bundle='dataSelector')" id="image6" toolTip="@Resource(key='ktpNewItem', bundle='dataSelector')"/>
<mx:Image height="25" width="25" source="@Resource(key='icon_new_group', bundle='dataSelector')" id="image5" toolTip="@Resource(key='ktpNewGroup', bundle='dataSelector')"/>
<mx:VRule height="27" width="3" id="vrule2"/>
<mx:Image height="25" width="25" source="@Resource(key='icon_copy', bundle='dataSelector')" id="image1" toolTip="@Resource(key='ktpCopy', bundle='dataSelector')"/>
<mx:Image height="25" width="25" source="@Resource(key='icon_paste', bundle='dataSelector')" id="image2" toolTip="@Resource(key='ktpPaste', bundle='dataSelector')" />
<mx:Image height="25" width="25" source="@Resource(key='icon_archiver', bundle='dataSelector')" id="image3" toolTip="@Resource(key='ktpArchive', bundle='dataSelector')"/>
<mx:VRule height="27" width="3" id="vrule1"/>
<mx:Image height="25" width="25" source="@Resource(key='icon_trash', bundle='dataSelector')" id="image4" toolTip="@Resource(key='ktpTrash', bundle='dataSelector')"/>
<mx:Zoom id="zoomAll" zoomWidthTo="2" zoomHeightTo="2" zoomWidthFrom="1" zoomHeightFrom="1" />
</mx:HBox> |
Partager