0
我試圖在Flash Builder 4.7上爲我的splashscreen使用圖片,但它似乎不起作用。 這裏是我的代碼:無法在Flash Builder上使用閃屏來工作
<?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>
我是新來的這一點,所以我很抱歉,如果答案是簡單。