Hi Imtiaz, This is what i actually expected..Good work.Thanks man. On Thu, Oct 9, 2008 at 1:21 PM, imtiyaz <[EMAIL PROTECTED]> wrote:
> > Check out the code, > <?xml version="1.0" encoding="utf-8"?> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" > layout="absolute" creationComplete="handleCC()"> > <mx:Script> > <![CDATA[ > public function handleCC():void{ > > } > > public function handleMouseMove(event:MouseEvent):void{ > if(resizepanel.selected){ > mypanel.width = event.stageX; > mypanel.height = event.stageY; > } > > } > public function handleMouseDown(event:MouseEvent):void{ > resizepanel.selected = false; > resizepanel.label = "Enable Resize"; > this.removeEventListener(MouseEvent.MOUSE_MOVE, > handleMouseMove); > this.removeEventListener(MouseEvent.MOUSE_DOWN, > handleMouseDown) > > } > > public function addResizeListeners():void{ > resizepanel.label = "Just click mouse to disable"; > this.addEventListener(MouseEvent.MOUSE_MOVE, > handleMouseMove) > this.addEventListener(MouseEvent.MOUSE_DOWN, > handleMouseDown) > } > ]]> > </mx:Script> > <mx:Panel id="mypanel" x="100" y="100" width="250" height="200" > layout="absolute"> > </mx:Panel> > <mx:CheckBox id="resizepanel" x="10" y="10" label="Enable Resize" > click="{addResizeListeners()}"/> > > </mx:Application> > > PS : I am not able to understand the use case ????? > > > Regards, > Imtiyaz Basha M S > > On Oct 9, 12:19 pm, "Satish பேர கேட்டா சும்மா அதுருதில" > <[EMAIL PROTECTED]> wrote: > > Hi, > > No i didnt mean that one..If the user moves the mouse over the panel it > > should resize accordingly..Say the panel size if height 50 and width 50.. > If > > i move my mouse out of that panel then the panel should also expand > > accordingly.. > > > > Regards > > Satish, > > > > On Thu, Oct 9, 2008 at 12:45 PM, imtiyaz <[EMAIL PROTECTED]> wrote: > > > > > If am not wrong you want to give the control to user to resize the > > > panel right for this, you can SuperPanel > > >http://www.wietseveenstra.nl/files/flex/SuperPanel/v1_5/MainView.html > > > > > Regards, > > > Imtiyaz Basha M S > > > > > On Oct 9, 9:34 am, friends <[EMAIL PROTECTED]> wrote: > > > > Hi friends, > > > > I have a panel. On mouse move i need the panel to expand dynamically. > > > > If i move the panel horizontally the panel should expand horizontally > > > > and if i move the mouse vertically the panel should expand > vertically. > > > > > > P.S:The mouse pointer should no way come out of the panel... Can > > > > anyone help me out in this problem.. > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

