[Arp] PopUpManager.createPopUp returns 'undefined'

Matt Brailsford mpb at logicalminds.co.uk
Thu Jan 5 05:19:02 PST 2006


Don't know why there is a space in the code I posted, but there isn't
one in my applications code, so it's still not working.

 

I was thinking it might be to do with the fact I'm using a shared
library. The window component is included in the fla and is told to
import it from the components swf. But I tried it with a window
component placed directly in the fla and still no luck.

 

I pretty much copy and pasted the code from an older project I did, so I
know it SHOULD work.

 

________________________________

From: Arp-bounces at ariaware.com [mailto:Arp-bounces at ariaware.com] On
Behalf Of Davies, Grant M.
Sent: 05 January 2006 13:14
To: 'General List for Ariaware RIA Platform users and developers'
Subject: Re: [Arp] PopUpManager.createPopUp returns 'undefined'

 

There is a space in your symbol name just before the 'A' in "
AddOrderItemForm" inside the quotes.

 

That's probably it why it's not popping up.

 

Don't forget if you want to size the popup you need to register for the
complete event and then size the popup window like this:

 

loginWindow = Window(mx.managers.PopUpManager.createPopUp(this,
mx.containers.Window, true, {title:"Login",
contentPath:"com.nscorp.util.view.LoginForm"}));

loginWindow.addEventListener(StandardEventNames.COMPLETE,
Delegate.create(this, addLoginListeners));

 

public function addLoginListeners(eventObject:Object)

{

                        //logger.debug("adding login Listeners");

                        loginWindow.setSize(loginWindow.content._width,
loginWindow.content._height + 40);

}

 

Cheers,

Grant

 

 

-----Original Message-----
From: Arp-bounces at ariaware.com [mailto:Arp-bounces at ariaware.com] On
Behalf Of Matt Brailsford
Sent: Thursday, January 05, 2006 7:35 AM
To: Arp at ariaware.com
Subject: [Arp] PopUpManager.createPopUp returns 'undefined'

 

Hi,

 

I'm trying to use PopUpManager within an Arp form to launch a window
component with another arp form as it's content.

 

When I use the command, nothing pops up and the return value of the
PopUpManager.createPopUp command is 'undeifned'

 

Has anyone got any ideas why this won't work? 

 

My code is as follows

 

import mx.containers.Window;

import mx.managers.PopUpManager;

 

function onAddNew()

{

            var winRef = PopUpManager.createPopUp(this, Window, true,
{title:"Add New", contentPath:" AddOrderItemForm", parent:this});

}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ariaware.com/pipermail/arp_ariaware.com/attachments/20060105/8e604f63/attachment.htm


More information about the Arp mailing list