Flex 에서 titleIcon 속성 을 이용 하여 Panel 용기 제목 에 ICON 아이콘 을 추가 하 는 방법

932 단어 xmlFlex

<?xml version="1.0" encoding="utf-8"?> 
<mx:Application name="Panel_titleIcon_test" 
        xmlns:mx="http://www.adobe.com/2006/mxml" 
        layout="vertical" 
        verticalAlign="middle" 
        backgroundColor="white"> 
  
    <mx:String id="lorem" source="lorem.txt" /> 
  
    <mx:Panel id="panel" 
            title="Panel title" 
            titleIcon="@Embed('assets/Panel.png')"> 
        <mx:Text id="txt" 
                text="{lorem}" 
                width="500" 
                textAlign="justify" 
                selectable="false" /> 
    </mx:Panel> 
  
</mx:Application>


좋은 웹페이지 즐겨찾기