2 answers better than none.  Yeah lag is fun,

Renaun

--- In flexcoders@yahoogroups.com, "Michael Schmalle"
<[EMAIL PROTECTED]> wrote:
>
> Ha,
> 
> here a perfect example of lag.
> 
> That is what I said about 15 minutes ago ;-)
> 
> Peace, Mike
> 
> On 6/16/06, Renaun Erickson <[EMAIL PROTECTED]> wrote:
> >
> >   In the layoutChrome function add this line:
> >
> > imgButton.setActualSize( imgButton.getExplicitOrMeasuredWidth(),
> > imgButton.getExplicitOrMeasuredHeight() );
> >
> > Renaun
> >
> >
> > --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>, "Jim
> > Robson" <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;
> > > }
> > >
> > > }
> > > }
> > >
> >
> >  
> >
> 
> 
> 
> -- 
> What goes up, does come down.
>







------------------------ Yahoo! Groups Sponsor --------------------~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/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