you flamin' bewdie, Tim! thanx heaps.
(and it makes sence too)
but... almost there: can't get the right references
"Access of undefined property NewPopUpParent"
I think I've missed something, or using the wrong reference for the
pop-up.
import mx.core.Application; // for mainCanvas
import flash.display.DisplayObject; // for NewPopUpParent?
import mx.events.FlexEvent;
// Import the PopUpManager.
import mx.managers.PopUpManager;
import mx.core.IFlexDisplayObject;
public var searchWindow:IFlexDisplayObject;
public var NewPopUpParent:DisplayObject;
NewPopUpParent = Application.application.mainCanvas;
// Additional import statement to use the TitleWindow container.
import mx.containers.TitleWindow;
private function showSearch():void {
var searchWindow:TitleWindow =
TitleWindow(PopUpManager.createPopUp(NewPopUpParent,
AcademicSearchForm, true));
// Add a close button.
searchWindow.showCloseButton=true;
// gets the parent to make it center (mainCanvas)
PopUpManager.centerPopUp(searchWindow);
}
======================================
thanx again Tim, much appreciated.
barry.b
--
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/