【问题标题】:Can't get Splashscreen on flash builder to work无法让 Flash Builder 上的 Splashscreen 工作
【发布时间】:2015-04-24 21:37:14
【问题描述】:

我正在尝试在 flash builder 4.7 上为我的启动画面使用图像,但它似乎不起作用。 这是我的代码:

<?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>

对于dynamicSplash screen.mxml,它是:

<?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>

我是新手,所以如果答案很简单,我很抱歉。

【问题讨论】:

    标签: apache-flex mobile


    【解决方案1】:

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

    splashScreenScaleMode="letterbox"
    splashScreenImage="@Embed('assets/splashScreen.png')"
    

    您只需要自己更改图像路径。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-11-26
      • 1970-01-01
      • 2011-09-11
      • 2011-11-24
      • 2016-09-08
      • 2011-11-23
      • 2011-10-27
      相关资源
      最近更新 更多