Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Adobe AIR Development

Reply
Developer
Deepu_George_Jacob
Posts: 235
Registered: ‎12-13-2011
My Device: Curve 9380
My Carrier: Vodafone-IN
Accepted Solution

How to make a TabAction selectable on Startup?

Below is my code, can anyone point me how to make a TabAction selectable

 

var action1:Action = new Action("About");
action1.actionBarPlacement = ActionPlacement.IN_OVERFLOW;

var usageTab:TabAction = new TabAction(null);
usageTab.label = "Usage";


var detailsTab:TabAction = new TabAction(null);
detailsTab.label = "Details";

var settingstab:TabAction = new TabAction(null);
settingstab.label = "Settings";

actionbar = new ActionBar();
actionbar.showTabsFirstOnBar(true);

actionbar.addAction(usageTab);
actionbar.addAction(detailsTab);
actionbar.addAction(settingstab);
actionbar.addAction(action1);

 

Thanks

Deepu :smileyhappy:

Please use plain text.
Developer
Deepu_George_Jacob
Posts: 235
Registered: ‎12-13-2011
My Device: Curve 9380
My Carrier: Vodafone-IN

Re: How to make a TabAction selectable on Startup?

I got the result

actionbar.selectedTabAction = usageTab;//Tab name
Please use plain text.