There are a few different ways in which you can specify the x and y
coordinates of a Pop-up window. One easy way to do it is as follows:
import mx.containers.TitleWindow;
import mx.managers.PopUpManager;
import mx.core.IFlexDisplayObject;
public function displayForm():void {
var helpWindow:IFlexDisplayObject = PopUpManager.createPopUp(this,
basics, false);
var window:TitleWindow = helpWindow as TitleWindow;
window.title="Basic Information";
window.showCloseButton = true;
window.x = 90;
window.y = 100;
}
First what we are doing is creating Pop-up window and Typing it as an
IFlexDisplayObject
Then we are casting it as an TitleWindow (change this to match the
type that is your class or component if need be)
That's pretty much it. If you need anything shoot me an email.
Hope that helps,
Eric Feminella
--- In [email protected], "mthielman11" <[EMAIL PROTECTED]> wrote:
>
> Does anyone know how to set the x and way proprties of a popup window?
>
> Here is my function. This does not work for some reason.
>
> public function displayForm():void {
> var helpWindow:basics =
> basics(PopUpManager.createPopUp(this, basics,
> false));
> helpWindow.title="Basic Information";
> helpWindow.showCloseButton = true;
> helpWindow.x = 90;
> helpWindow.y = 100;
> }
>
>
> I can not find the info anywhere.
>
------------------------ Yahoo! Groups Sponsor --------------------~-->
Great things are happening at Yahoo! Groups. See the new email design.
http://us.click.yahoo.com/SktRrD/hOaOAA/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/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> 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/