Question : How to Link to a Specific Section in Flex Application?

Hi,

How to Link to a Specific Section (panel / vbox ..etc )in Flex Application.
Explanation:
Assume that you have tree in the left hand side which will control the right hand side and we assumed that area (right side) is loaded with all let hand side control and we need to point to specific item in right hand side by clicking in the item in left hand side.

Thanks,

Answer : How to Link to a Specific Section in Flex Application?

Hi,

Try something like this?
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
<?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>
Random Solutions  
 
programming4us programming4us