图像控件 ImageControl

图像控件

书:164

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
               xmlns:s="library://ns.adobe.com/flex/spark" 
               xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
    <fx:Declarations>
        <!-- 将非可视元素(例如服务、值对象)放在此处 -->
    </fx:Declarations>
    <!-- 图像控件 -->
    <mx:Panel id="myPanel" title="图像控件实例" height="50%" width="50%" horizontalAlign="center"
               paddingTop="10" paddingLeft="10">
        <mx:Label text="显示一张图片"/>
        <mx:Image source="@Embed('assets/images/co图例切图.jpg')" />
    </mx:Panel>
</s:Application>

 

posted @ 2019-04-10 17:03  阴翳公子  阅读(422)  评论(0编辑  收藏  举报