|
I’m trying extend the TitleWindow class: the goal is
to add a small graphic to the lower right corner to be used as a “resize”
button. This is something that should display outside of the window’s
contents. But no matter what I’ve tried, the button gets obscured by
whatever code the Container class uses to limit the size of its children. I’ve
pasted the current version of my code below. Anyone see what I’m doing
wrong? package { 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; private var indButton:int; public function TitleWindowResizeable(){ super(); imgButton = new Image(); imgButton.source = clsButton; } override protected function createChildren():void { super.createChildren(); indButton = rawChildren.numChildren - 1; dspButton = rawChildren.addChildAt(imgButton,indButton); dspButton.x = 400; //this.width - 14; dspButton.y = 450; //this.height - 14; } } -- 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
YAHOO! GROUPS LINKS
|

