這時可以圖像來取代, 令用戶易於過度, 還可展示Logo.
<s:ViewNavigatorApplication xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" firstView="views.galleryHomeView" splashScreenMinimumDisplayTime="2000" splashScreenScaleMode="zoom" splashScreenImage="@Embed('assets/YOUR_IMAGE.jpg')" frameRate="60"> <fx:Declarations> <!-- Place non-visual elements (e.g., services, value objects) here --> </fx:Declarations> </s:ViewNavigatorApplication>
在Default Application 的ViewNavigatorApplication 有以下三個屬性設定:
- splashScreenImage
- 可設為 splashScreenImage="@Embed('assets/YOUR_IMAGE.jpg')"
- splashScreenScaleMode
- 可設為以下四種模式:
- letterbox
- none
- stretch
- zoom
- splashScreenMinimumDisplayTime
- 預設為1000 (即一秒), 如程式載入時間極短, 圖像仍然以一秒時間顯示, 然後啟動程式
沒有留言:
張貼留言