flex - Can't get Splashscreen on flash builder to work -
i'm trying use image splashscreen on flash builder 4.7 doesn't seem work. here 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 dynamicsplash screen.mxml 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 this, i'm sorry if answer simple.
for splashscreens use following code:
splashscreenscalemode="letterbox" splashscreenimage="@embed('assets/splashscreen.png')" you need change image path own.
Comments
Post a Comment