[flexcoders] Re: Resizable, Collapsible, Draggable Panel??
Thank you for your help, I'm making progress!! I got SizeableTitleWindow to work! Yay! It starts off really tiny, is there a way to make the initial size a bit bigger? I'll look through the code and see if I can tell what I need to change. Also, is there some way I could get the two graphics you refer to (upArrow.gif and downArrow.gif)? I'm still getting errors on MaxRestorePanel once I fixed those things I mentioned earlier. The code below has the error 1059: Property is read-only. public function MaxRestorePanel(){ this.className = "MaxRestorePanel"; } The code below has this error on both lines - 1067: Implicit coercion of a value of type flash.display:DisplayObject to an unrelated type mx.core:IFlexDisplayObject var upAsset:IFlexDisplayObject = btStateUp.getChildByName("upIcon"); var downAsset:IFlexDisplayObject = btStateDown.getChildByName("upIcon"); And these lines have 1120 - Access of undefined property allChildrenList allChildrenList.addChild(btStateUp); allChildrenList.addChild(btStateDown); Thanks so much. :) -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
Re: [flexcoders] Re: Resizable, Collapsible, Draggable Panel??
oops, looks like i missed an update in there. In MaxRestorePanel, you can simply change private function doRestore(event:Event){ to private function doRestore(event:Event):void{ and likewise private function doRestore(event:Event){ should be private function doRestore(event:Event):void{ In SizeableTitleWindow, you can add protected const HEADER_PADDING:int=25; just before protected function getHeaderHeight():Number (i think its around line 125 or so). Sorry for the confusion. At 01:24 PM 8/22/2006, Megan wrote: Thank you! I did come across these examples, I knew there were a couple I had forgotten to mention. I'm not sure why I didn't look into them more. Right now I'm getting two 1008 warnings in the MaxRestorePanel.as, one that the return value for function "doRestore" has no type declaration and one that the return value for the function "doMaximize" has no type declaration. I can get the component to show up when I put it in an application, but it doesn't do anything. In SizeableTitleWindow, I get a 1120 error "Access of undefined property HEADER_PADDING". If I could get some help on fixing those I'd appreciate it. I'm so close!! :D Thanks so much! --- In flexcoders@yahoogroups.com, Jeff Tapper <[EMAIL PROTECTED]> wrote: > > I've got examples of resizable and collapsible on my blog: > http://jeff.mxdj.com/flex_2_maxrestorepanel_class.htm > http://jeff.mxdj.com/sizeabletitlewindow.htm > > At 12:05 PM 8/22/2006, Megan wrote: > > >Hi everyone. I've been trying to make a panel for an application that > >has quite a few features. It would need to be manually resizable (not > >just using states) when you mouse over the lower right hand corner and > >drag, it needs to be draggable and minimizable/maximizable. I've used > >the Popup Manager to make the windows draggable, and to be able to > >switch focus if there are multiple windows. > > > >I have found quite a few different examples for the resize feature, > >but all the ones I could find are from before Flex 2.0 was released, > >and I can't fix all the errors that come up! > > > >Examples I have found include: > > > > http://www.flexdaddy.info/2005/03/06/resizable-and-collapsable-titlewindow-flex-15/ > >(the main one I've been working with) > > http://www.coenraets.com/viewarticle.jsp?articleId=89 > > http://ria.richtechmedia.com/2006/03/10/resize-panel-revisited/ > >(haven't been able to get the code for this one) > > > >If anyone can help with the Actionscript code in the first example > >especially, that would be awesome. Or if someone could give me a > >really simple example that is resizable I would appreciate it so much. > > > >Thank you for any help!! > > > > > > > > > > > > > >-- > >Flexcoders Mailing List > >FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > >Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com > >Yahoo! Groups Links > > > > > > > > > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to: [EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
[flexcoders] Re: Resizable, Collapsible, Draggable Panel??
Thank you! I did come across these examples, I knew there were a couple I had forgotten to mention. I'm not sure why I didn't look into them more. Right now I'm getting two 1008 warnings in the MaxRestorePanel.as, one that the return value for function "doRestore" has no type declaration and one that the return value for the function "doMaximize" has no type declaration. I can get the component to show up when I put it in an application, but it doesn't do anything. In SizeableTitleWindow, I get a 1120 error "Access of undefined property HEADER_PADDING". If I could get some help on fixing those I'd appreciate it. I'm so close!! :D Thanks so much! --- In flexcoders@yahoogroups.com, Jeff Tapper <[EMAIL PROTECTED]> wrote: > > I've got examples of resizable and collapsible on my blog: > http://jeff.mxdj.com/flex_2_maxrestorepanel_class.htm > http://jeff.mxdj.com/sizeabletitlewindow.htm > > At 12:05 PM 8/22/2006, Megan wrote: > > >Hi everyone. I've been trying to make a panel for an application that > >has quite a few features. It would need to be manually resizable (not > >just using states) when you mouse over the lower right hand corner and > >drag, it needs to be draggable and minimizable/maximizable. I've used > >the Popup Manager to make the windows draggable, and to be able to > >switch focus if there are multiple windows. > > > >I have found quite a few different examples for the resize feature, > >but all the ones I could find are from before Flex 2.0 was released, > >and I can't fix all the errors that come up! > > > >Examples I have found include: > > > >http://www.flexdaddy.info/2005/03/06/resizable-and-collapsable-titlewindow-flex-15/ > >(the main one I've been working with) > >http://www.coenraets.com/viewarticle.jsp?articleId=89 > >http://ria.richtechmedia.com/2006/03/10/resize-panel-revisited/ > >(haven't been able to get the code for this one) > > > >If anyone can help with the Actionscript code in the first example > >especially, that would be awesome. Or if someone could give me a > >really simple example that is resizable I would appreciate it so much. > > > >Thank you for any help!! > > > > > > > > > > > > > >-- > >Flexcoders Mailing List > >FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > >Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com > >Yahoo! Groups Links > > > > > > > > > -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/