Andrew,

 

The instance of the new window is returned by the createPopUp call.

 

var newwindow:MovieClip=mx.managers.PopUpManager.createPopUp(this, windowClass, true, (deferred: true});

newwindow.var1="new value";

 

windowClass.mxml:

<?xml version="1.0" ?>

<mx:TitleWindow xmlns:mx="...">

<mx:Script>

  var var1="orig value";

</mx:Script>

...

</mx:TitleWindow>

- Dan

Here is the asdoc on createPopUp:

 

createPopUp

static createPopUp(parent:MovieClip, className:Object, modal:Boolean, initobj:Object, broadcastOutsideEvents:Boolean) : MovieClip

Creates a top level window. Modal windows must be destroyed by calling deletePopUp(), which is added to the top level window.

Parameters
    
parent - Object to use to center the new top level window. The top level window is probably actually parented by _root.
    
className - Class of object to convert into the top level window.
    
modal - If true, the window is modal.
    
initobj -
    
broadcastOutsideEvents - If true, dispatches mouseDownOutside events if the mouse is clicked outside the window

Returns
     Reference to new top level window.

 

 

-----Original Message-----
From: Andrew Spaulding [mailto:[EMAIL PROTECTED]
Sent:
Sunday, May 02, 2004 10:31 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] how to pass data when creating a popup window

 

hi all,

im using the command
mx.managers.PopUpManager.createPopUp(_root, windowName, true,
(deferred: true});

ive got a var declared inside the window that is being opened, but
how can i set it when the popup window is created?


regards,

Andrew



Reply via email to