Can't get Splashscreen on flash builder to work

时间:2015-04-24 21:37:15

标签: flex mobile

I'm trying to use an image for my splashscreen on flash builder 4.7 but it doesn't seem to work. Here is my code:

<?xml version="1.0" encoding="utf-8"?>
<s:TabbedViewNavigatorApplication xmlns:fx="http://ns.adobe.com/mxml/2009" 
                              xmlns:s="library://ns.adobe.com/flex/spark"
                              splashScreenImage="DynamicSplashScreen.mxml">
<s:ViewNavigator label="Menu" width="100%" height="100%" firstView="views.MenuView"/>
<s:ViewNavigator label="Search" width="100%" height="100%" firstView="views.SearchView"/>
<s:ViewNavigator label="Location" width="100%" height="100%" firstView="views.LocationView"/>
<s:ViewNavigator label="List" width="100%" height="100%" firstView="views.ListView"/>
<fx:Declarations>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>

and for the dynamicSplash screen.mxml it is:

<?xml version="1.0" encoding="utf-8"?>
<s:SplashScreenImage xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark">   
<s:SplashScreenImageSource dpi="160" aspectRatio="portrait" source="@Embed('/images/Random.png')"/>   
</s:SplashScreenImage>

i'm new to this, so i'm sorry if the answer is simple.

1 个答案:

答案 0 :(得分:0)

对于启动画面,我使用以下代码:

TextWrapping

您只需要用自己的方式更改图像路径。