2011-07-03 22 views

答えて

1

OK属性、あなたのソリューションの主な焦点は、モバイルアプリケーションのプリローダーの属性です。

<?xml version="1.0" encoding="utf-8"?> 
<s:ViewNavigatorApplication xmlns:fx="http://ns.adobe.com/mxml/2009" 
    xmlns:s="library://ns.adobe.com/flex/spark" 
    firstView="views.FXGSplashHomeView" 
    preloader="CustomSplashScreen" 
    splashScreenMinimumDisplayTime="3000" 
    applicationDPI="160"> 
</s:ViewNavigatorApplication> 

CustomSplashScreenが延びており、上書きされますspark.preloaders.SplashScreenクラスを、そしてgetImageClass機能:プリローダー= "CustomSplashScreen" の下を参照してください。これだけです

<?xml version="1.0" encoding="UTF-8"?> 
<Graphic xmlns="http://ns.adobe.com/fxg/2008" 
     xmlns:d="http://ns.adobe.com/fxg/2008/dt" 
     xmlns:fc="http://ns.adobe.com/flashcatalyst/2009" 
     version="2.0"> 
    <Path y="1" data="M 0 10 L 40 10 L 35 0 L 9 15 L 35 30 L 40 20 L 0 20 z"> 
     <fill> 
      <SolidColor color="#0000FF" alpha="0.6"/> 
     </fill> 
    </Path> 
</Graphic> 

package 
{ 

    import mx.core.DPIClassification; 
    import mx.core.mx_internal; 

    import spark.preloaders.SplashScreen; 

    use namespace mx_internal; 
    public class CustomSplashScreen extends SplashScreen 

    { 
     public function CustomSplashScreen() 
     { 
      super(); 
     } 

     override mx_internal function getImageClass(dpi:Number, aspectRatio:String):Class 
     { 
      return Class(splash); 
     } 
    } 
} 

リターンクラス(スプラッシュ)でのスプラッシュは、そのような単純なFXGファイル、です。楽しむ!

- アレン

関連する問題