Changeset 574 for flamingo/trunk/fmc/classes/gui/TabControler.as
- Timestamp:
- 27-08-10 11:40:57 (21 months ago)
- File:
-
- 1 edited
-
flamingo/trunk/fmc/classes/gui/TabControler.as (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
flamingo/trunk/fmc/classes/gui/TabControler.as
r571 r574 18 18 * @hierarchy child node of Flamingo 19 19 * @example 20 * <fmc:TabControler left="left" width="300" top="top" bottom="bottom" borderalpha="0" >20 * <fmc:TabControler left="left" width="300" top="top" bottom="bottom" borderalpha="0" startuptab="1"> 21 21 <fmc:Tab width="100%" height="100%"> 22 22 <string id="buttonlabel" nl="Kaartlagen"/> … … 34 34 </fmc:Tab> 35 35 </fmc:TabControler> 36 * @attr startuptab default:0 The tab number(0 is the first tab, 1 is the second tab etc.) of the tab that should be opened at startup 36 37 **/ 37 38 … … 47 48 private var tabs : Array; 48 49 private var numTabs : Number; 50 private var startuptab: Number = 0; 49 51 var buttons:MovieClip = null; 50 52 … … 53 55 this.setVisible(false); 54 56 } 57 58 function setAttribute(name:String, value:String):Void { 59 if (name == "startuptab") { 60 startuptab = Number(value); 61 } 62 } 55 63 56 64 function init():Void { … … 76 84 _global.flamingo.addListener(this,"flamingo",this); 77 85 this.setVisible(true); 86 tabs[startuptab].show(); 78 87 } 79 88
Note: See TracChangeset
for help on using the changeset viewer.