<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="init()">
<mx:Script>
<![CDATA[
import mx.events.ItemClickEvent;
[Bindable]
private var text:String;
private function init():void{
text = 'The Dalai Lama (Tibetan: ¿¿¿¿¿¿¿¿¿¿¿¿; Wylie: taa la’i bla ma; simplified Chinese: ¿¿¿¿; traditional Chinese: ¿¿¿¿; pinyin: Dálài Lama) is a Buddhist leader of religious officials of the Gelug sect of Tibetan Buddhism. The name is a combination of the Mongolian word ¿¿¿¿¿ "Dalai" meaning "Ocean" and the Tibetan word ¿¿¿¿ ¿"Blama" (with a silent b) meaning "chief" or "high priest."[1] "Lama" is a general term referring to Tibetan Buddhist teachers. In religious terms, the Dalai Lama is believed by his devotees to be the rebirth of a long line of tulkus who descend from the bodhisattva Avalokitesvara. Traditionally, he is thought of as the latest reincarnation of a series of spiritual leaders who have chosen to be reborn in order to enlighten others. The Dalai Lama is often thought to be the director of the Gelug School, but this position belongs officially to the Ganden Tripa, which is a temporary position appointed by the Dalai Lama who, in practice, exerts much influence.Between the 17th century and 1959, the Dalai Lamas were the directors of the Tibetan Government, administering a large portion of the area from the capital Lhasa, although the extent of that lineages historical authority, legitimacy and claim to territory has been recently contested for political reasons. Since 1959, the Dalai Lama has been president of the Tibetan government-in-exile, or Central Tibetan Administration (CTA).';
}
private function clickHandler(event:ItemClickEvent):void {
myBox.verticalScrollPosition = myBox.getChildByName("p" + event.label).y;
}
]]>
</mx:Script>
<mx:HBox>
<mx:ButtonBar itemClick="clickHandler(event);" direction="vertical">
<mx:dataProvider>
<mx:Array>
<mx:String>1</mx:String>
<mx:String>2</mx:String>
<mx:String>3</mx:String>
<mx:String>4</mx:String>
<mx:String>5</mx:String>
<mx:String>6</mx:String>
<mx:String>7</mx:String>
<mx:String>8</mx:String>
<mx:String>9</mx:String>
<mx:String>10</mx:String>
<mx:String>11</mx:String>
<mx:String>12</mx:String>
<mx:String>13</mx:String>
<mx:String>14</mx:String>
<mx:String>15</mx:String>
<mx:String>16</mx:String>
</mx:Array>
</mx:dataProvider>
</mx:ButtonBar>
<mx:VBox id="myBox" height="400" width="400">
<mx:Panel id="p1" title="1">
<mx:TextArea text="{text}" height="100" width="200"/>
</mx:Panel>
<mx:Panel id="p2" title="2">
<mx:TextArea text="{text}" height="100" width="200"/>
</mx:Panel>
<mx:Panel id="p3" title="3">
<mx:TextArea text="{text}" height="100" width="200"/>
</mx:Panel>
<mx:Panel id="p4" title="4">
<mx:TextArea text="{text}" height="100" width="200"/>
</mx:Panel>
<mx:Panel id="p5" title="5">
<mx:TextArea text="{text}" height="100" width="200"/>
</mx:Panel>
<mx:Panel id="p6" title="6">
<mx:TextArea text="{text}" height="100" width="200"/>
</mx:Panel>
<mx:Panel id="p7" title="7">
<mx:TextArea text="{text}" height="100" width="200"/>
</mx:Panel>
<mx:Panel id="p8" title="8">
<mx:TextArea text="{text}" height="100" width="200"/>
</mx:Panel>
<mx:Panel id="p9" title="9">
<mx:TextArea text="{text}" height="100" width="200"/>
</mx:Panel>
<mx:Panel id="p10" title="10">
<mx:TextArea text="{text}" height="100" width="200"/>
</mx:Panel>
<mx:Panel id="p11" title="11">
<mx:TextArea text="{text}" height="100" width="200"/>
</mx:Panel>
<mx:Panel id="p12" title="12">
<mx:TextArea text="{text}" height="100" width="200"/>
</mx:Panel>
<mx:Panel id="p13" title="13">
<mx:TextArea text="{text}" height="100" width="200"/>
</mx:Panel>
<mx:Panel id="p14" title="14">
<mx:TextArea text="{text}" height="100" width="200"/>
</mx:Panel>
<mx:Panel id="p15" title="15">
<mx:TextArea text="{text}" height="100" width="200"/>
</mx:Panel>
<mx:Panel id="p16" title="16">
<mx:TextArea text="{text}" height="100" width="200"/>
</mx:Panel>
</mx:VBox>
</mx:HBox>
</mx:Application>
|