Ah yeah, i probably still have a beta 2 build of it up there.  I just 
dropped a b3 version of it here:
http://flex2.tapper.net/flex2Demos/maxRestorePanel/Test_Panel.swf

At 10:47 AM 6/16/2006, you wrote:

>Jeff:
>I think my Flash player must have become corrupted: when I try to view 
>your sample in action, all I get is the Flex-gray background.
><http://flex2.tapper.net/flex2Demos/TestMaxRestorePanel.html>http://flex2.tapper.net/flex2Demos/TestMaxRestorePanel.html
>
>Jim
>
>
>----------
>From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On 
>Behalf Of Jeff Tapper
>Sent: Friday, June 16, 2006 10:32 AM
>To: flexcoders@yahoogroups.com; flexcoders@yahoogroups.com
>Subject: Re: [flexcoders] titleBar in TitleWindow (Panel) class
>
>Try adding it to the rawChildren of the Panel, rather than directly to the
>titleBar.
>
>I've got an example of doing that here:
>
><http://jeff.mxdj.com/flex_2_maxrestorepanel_class.htm>http://jeff.mxdj.com/flex_2_maxrestorepanel_class.htm
>
>At 10:21 AM 6/16/2006, Jim Robson wrote:
>
> >When subclassing the TitleWindow class, shouldn't it be possible to add a
> >child to the titleBar UIComponent? Within the Panel class definition,
> >children are added to the titleBar using the addChild method. However, when
> >I attempt to do so in a subclass, the child does not display. Does anyone
> >know why this is? Am I missing something (code below)?
> >
> >package com.eyestreet.widgets {
> >
> >import mx.containers.TitleWindow;
> >import mx.controls.Image;
> >import flash.display.DisplayObject;
> >
> >public class TitleWindowResizeable extends TitleWindow {
> >
> >[Embed(source="button-resize.png", mimeType="image/png")]
> >private var clsButton:Class;
> >private var imgButton:Image;
> >private var dspButton:DisplayObject;
> >
> >public function TitleWindowResizeable(){
> >super();
> >imgButton = new Image();
> >imgButton.source = clsButton;
> >}
> >
> >override protected function createChildren():void {
> >super.createChildren();
> >
> >//This does not display:
> >dspButton = titleBar.addChild(imgButton);
> >
> >/* The following would display, but the image
> >* gets trimmed by the panel's frame:
> >* dspButton = titleBar.addChild(imgButton);
> >*/
> >}
> >
> >override protected function layoutChrome(unscaledWidth:Number,
> >unscaledHeight:Number):void {
> >super.layoutChrome(unscaledWidth, unscaledHeight);
> >dspButton.x = unscaledWidth-30;
> >dspButton.y = unscaledHeight-30;
> >}
> >
> >}
> >}
> >
> >
> >
> >No virus found in this incoming message.
> >Checked by AVG Anti-Virus.
> >Version: 7.1.394 / Virus Database: 268.9.0/367 - Release Date: 6/16/2006
>
>--
>No virus found in this outgoing message.
>Checked by AVG Anti-Virus.
>Version: 7.1.394 / Virus Database: 268.9.0/367 - Release Date: 6/16/2006
>
>
>
>No virus found in this incoming message.
>Checked by AVG Anti-Virus.
>Version: 7.1.394 / Virus Database: 268.9.0/367 - Release Date: 6/16/2006


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.394 / Virus Database: 268.9.0/367 - Release Date: 6/16/2006




------------------------ Yahoo! Groups Sponsor --------------------~--> 
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
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/
 


Reply via email to