이미지가 동적으로 로딩될때 로딩이미지 표시하는 예제
<mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml” layout=”absolute” backgroundColor=”#000000″ >
<mx:Button label=”View Image” horizontalCenter=”0″ top=”5″ click=”imageCanvas.visible = true;sceneImage.load()” />
<mx:Canvas id=”imageCanvas” verticalScrollPolicy=”off” horizontalScrollPolicy=”off” backgroundColor=”#000000″ top=”40″ height=”100%” width=”100%” visible=”false”>
<mx:Image id=”sceneImage” autoLoad=”false” source=”img/car_small_1.jpg” verticalCenter=”0″ horizontalCenter=”0″ />
<mx:Image id=”loadingIcon” source=”@Embed(’loading.gif’)” horizontalCenter=”0″ verticalCenter=”0″ visible=”{sceneImage.percentLoaded != 100}” />
<mx:Label text=”Loading…” verticalCenter=”18″ horizontalCenter=”0″ color=”#ffffff” fontSize=”10″ visible=”{sceneImage.percentLoaded != 100}” />
</mx:Canvas>
</mx:Application>
출처:
http://mylee.wordpress.com/2007/01/26/이미지-로딩-예제/
테스트 해봐야지
'ria > flex' 카테고리의 다른 글
| [동영상] The future of Flash Player, Flex, AIR, Thermo and more (0) | 2008/10/16 |
|---|---|
| [FP10] Adobe Flash Player 10 Release (0) | 2008/10/16 |
| 이미지가 동적으로 로딩될때 로딩이미지 표시하는 예제 (0) | 2008/09/17 |
| [Flex] [펌] Custom Component (0) | 2008/09/04 |
| [펌] 유용한 액션스크립트 라이브러리 20개 (0) | 2008/08/29 |
| [Flex] seriesFilters (0) | 2008/08/28 |


이올린에 북마크하기

댓글을 달아 주세요