you are able to achieve till scroll, but still it is disabled and iam able to see till 10 only :)
On Dec 29, 10:43 pm, Khalid Chaudhary <[email protected]> wrote: > try this............. able to achieve something......... :) > there is 2 files .. now > --------------------------------------------------------------------------- > ------------------------------------------- > > <?xml version="1.0"?> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> > > <mx:Script> > <![CDATA[ > > import mx.controls.*; > import mx.events.*; > > private var myMenu:Menu; > > private function initMenu():void { > myMenu = new MyMenuComp(); > var dp:Object = [{label: "New Folder"}, > {label: "Sent Items"}, > {label: "Inbox1"}, > {label: "Inbox2"}, > {label: "Inbox3"}, > {label: "Inbox4"}, > {label: "Inbox5"}, > {label: "Inbox6"}, > {label: "Inbox7"}, > {label: "Inbox8"}, > {label: "Inbox9"}, > {label: "Inbox10"}, > {label: "Inbox11"}, > {label: "Inbox12"}, > {label: "Inbox13"}, > {label: "Inbox14"}, > {label: "Inbox15"}, > {label: "Inbox16"}, > {label: "Inbox17"}, > {label: "Inbox23"}, > {label: "Inbox31"}, > {label: "Inbox41"}, > {label: "Inbox51"}, > {label: "Inbox61"}, > {label: "Inbox71"}, > {label: "Inbox81"}, > {label: "Inbox91"}, > {label: "Inbox101"}, > {label: "Inbox111"}, > {label: "Inbox121"}, > {label: "Inbox131"}, > {label: "Inbox141"}, > {label: "Inbox151"}, > {label: "Inbox161"}, > {label: "Sent Items"}, > {label: "Inbox1"}, > {label: "Inbox2"}, > {label: "Inbox3"}, > {label: "Inbox4"}, > {label: "Inbox5"}, > {label: "Inbox6"}, > {label: "Inbox7"}, > {label: "Inbox8"}, > {label: "Inbox9"}, > {label: "Inbox10"}, > {label: "Inbox11"}, > {label: "Inbox12"}, > {label: "Inbox13"}, > {label: "Inbox14"}, > {label: "Inbox15"}, > {label: "Inbox16"}, > {label: "Inbox17"}, > {label: "Inbox23"}, > {label: "Inbox31"}, > {label: "Inbox41"}, > {label: "Inbox51"}, > {label: "Inbox61"}, > {label: "Inbox71"}, > {label: "Inbox81"}, > {label: "Inbox91"}, > {label: "Inbox101"}, > {label: "Inbox111"}, > {label: "Inbox121"}, > {label: "Inbox131"}, > {label: "Inbox141"}, > {label: "Inbox151"}, > {label: "Inbox161"}, > {label: "Sent Items"}, > {label: "Inbox1"}, > {label: "Inbox2"}, > {label: "Inbox3"}, > {label: "Inbox4"}, > {label: "Inbox5"}, > {label: "Inbox6"}, > {label: "Inbox7"}, > {label: "Inbox8"}, > {label: "Inbox9"}, > {label: "Inbox10"}, > {label: "Inbox11"}, > {label: "Inbox12"}, > {label: "Inbox13"}, > {label: "Inbox14"}, > {label: "Inbox15"}, > {label: "Inbox16"}, > {label: "Inbox17"}, > {label: "Inbox23"}, > {label: "Inbox31"}, > {label: "Inbox41"}, > {label: "Inbox51"}, > {label: "Inbox61"}, > {label: "Inbox71"}, > {label: "Inbox81"}, > {label: "Inbox91"}, > {label: "Inbox101"}, > {label: "Inbox111"}, > {label: "Inbox121"}, > {label: "Inbox131"}, > {label: "Inbox141"}, > {label: "Inbox151"}, > {label: "Inbox161"}, > {label: "Sent Items"}, > {label: "Inbox1"}, > {label: "Inbox2"}, > {label: "Inbox3"}, > {label: "Inbox4"}, > {label: "Inbox5"}, > {label: "Inbox6"}, > {label: "Inbox7"}, > {label: "Inbox8"}, > {label: "Inbox9"}, > {label: "Inbox10"}, > {label: "Inbox11"}, > {label: "Inbox12"}, > {label: "Inbox13"}, > {label: "Inbox14"}, > {label: "Inbox15"}, > {label: "Inbox16"}, > {label: "Inbox17"}, > {label: "Inbox23"}, > {label: "Inbox31"}, > {label: "Inbox41"}, > {label: "Inbox51"}, > {label: "Inbox61"}, > {label: "Inbox71"}, > {label: "Inbox81"}, > {label: "Inbox91"}, > {label: "Inbox101"}, > {label: "Inbox111"}, > {label: "Inbox121"}, > {label: "Inbox131"}, > {label: "Inbox141"}, > {label: "Inbox151"}, > {label: "Inbox161"} > ]; > myMenu.dataProvider = dp; > myMenu.selectedIndex = 0; > myMenu.addEventListener("itemClick", itemClickHandler); > myMenu.height = 250; > myMenu.verticalScrollPolicy = "on"; > myMenu.verticalScrollPosition = 100; > popB.popUp = myMenu; > popB.label = "Put in: " + > myMenu.dataProvider[myMenu.selectedIndex].label; > } > > private function itemClickHandler(event:MenuEvent):void { > var label:String = event.item.label; > popTypeB.text=String("Moved to " + label); > popB.label = "Put in: " + label; > popB.close(); > myMenu.selectedIndex = event.index; > } > > ]]> > </mx:Script> > > <mx:Panel title="PopUpButton Control Example" height="75%" width="75%" > paddingTop="10" paddingBottom="10" paddingRight="10" > paddingLeft="10"> > > <mx:Label width="100%" color="blue" > text="Button label contains the name of the last selected menu > item." /> > <mx:PopUpButton id="popB" label="Edit" > creationComplete="initMenu();" width="135"> > > </mx:PopUpButton> > > <mx:Spacer height="50" /> > <mx:TextInput id="popTypeB" /> > > </mx:Panel> > </mx:Application> > > --------------------------------------------------------------------------- > ------------------------------------------ > > package > { > import mx.controls.Menu; > > public class MyMenuComp extends Menu > { > public function MyMenuComp(){ > super(); > } > > private var _verticalScrollPolicy:String; > > override public function set > verticalScrollPolicy(value:String):void{ > _verticalScrollPolicy = value; > } > > override public function get verticalScrollPolicy():String{ > return _verticalScrollPolicy; > } > > } > > } > > --------------------------------------------------------------------------- > --------------------------------------------- > > > > > > > > On Wed, Dec 29, 2010 at 10:53 PM, babi <[email protected]> wrote: > > the same code as yours, just iam storing values in array but the issue > > is when ever we use popup menu button, it exceeds the length of > > browser & will not have scroll policy. so iam facing the issue > > > On Dec 29, 10:11 pm, Khalid Chaudhary > > ... > > read more » -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

