【发布时间】: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