Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>OK, the primary focus for your solution is the preloader attribute on a mobile application. See the preloader="CustomSplashScreen" below:</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;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"&gt; &lt;/s:ViewNavigatorApplication&gt; </code></pre> <p>The CustomSplashScreen extends and overrides the spark.preloaders.SplashScreen class, and the getImageClass function.</p> <pre><code>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); } } } </code></pre> <p>The splash in the return Class(splash), is a simple fxg file, like so:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;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"&gt; &lt;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"&gt; &lt;fill&gt; &lt;SolidColor color="#0000FF" alpha="0.6"/&gt; &lt;/fill&gt; &lt;/Path&gt; &lt;/Graphic&gt; </code></pre> <p>That's all there is to it. Have fun!</p> <p>-- Allen</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload