Anyone successfully added an icon to their tabs in <s:TabbedMobileApplication> ? I’ve tried just using something like:
<s:ViewNavigator firstView="views.appmobile_HOME" width="100%" height="100%" icon="@Embed(source='../assets/home_icon.png')"/>
I’ve also tried in <fx:Script> something like:
[Bindable]
[Embed(source="../assets/home_icon.png")]
public static var homeImg:Class;
then below added:
<s:ViewNavigator firstView="views.appmobile_HOME" width="100%" height="100%" icon="{homeImg}"/>
Neither of these methods worked, and to be safe i used the same code to embed an image on the screen and it works!. I just can’t seem to get the icons to appear in the tabs!
also note – I was doing all of this in my main mxml file, just incase you’re familiar with the Flex Burrito “Mobile application” file structure. And another thing is that I don’t get any errors when trying these methods. It lets me compile and test it.
It sounds like you are using the MAX preview release of the Flex Hero SDK. I’m not sure if icons were supported at that time. I verified that this works in the latest build of Hero. You can access the latest build by signing up for the prerelease program here: http://iamdeepa.com/blog/?p=85
Note: TabbedMobileApplication has been renamed to TabbedViewNavigatorApplication in the latest build.