all groups > flash (macromedia) > november 2005 >
You're in the

flash (macromedia)

group:

Enhancing the Window Component


Enhancing the Window Component continuity
11/30/2005 10:13:38 PM
flash (macromedia): could any of the as2 gurus please point me in the right direction for adding
minimise ,restore, and window icon to enhance the window component...

the comments in the window.as code don't really cut it...

continuity

Re: Enhancing the Window Component *
12/1/2005 5:07:17 PM
On Wed, 30 Nov 2005 22:13:38 +0000 (UTC), "continuity"
[quoted text, click to view]

I'm not sure if there is a way to add those buttons that already exists but
could you create the buttons and use attachMovie to the window you created?

The example on LiveDocs:
http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=00003031.html


// Begin ActionScript
buttonListener = new Object();
buttonListener.click = function(){
myWindow = mx.managers.PopUpManager.createPopUp(_root,
mx.containers.Window, true, {title:"Change Password",
contentPath:"PasswordForm"});
myWindow.setSize(240,110);



// Add this line
myWindow.attachMovie("PasswordForm", "blah",
myWindow.getNextHighestDepth(), {_x: 50, _y: 10});



}
button.addEventListener("click", buttonListener);
// End ActionScript


AddThis Social Bookmark Button