[flexcoders] Question about popup

2009-01-27 Thread markgoldin_2000
Here is my code:

var c:Classes = new Classes();
var popupWindow:TitleWindow = new TitleWindow;  
this line works fine:
popupWindow = c.showPopupWindow(DisplayObject(this), saveAsPriceList);
var saveAs:saveAsPriceList = new saveAsPriceList;
but this wouldn't compile:
popupWindow = c.showPopupWindow(DisplayObject(this), saveAs);
Message:
1067: Implicit coercion of a value of type saveAsPriceList to an 
unrelated type Class.

public function showPopupWindow(parent:DisplayObject, 
WhatToShow:Class):TitleWindow
{
// Create a modal TitleWindow container.
var popupWindow:TitleWindow =
TitleWindow(PopUpManager.createPopUp(parent, WhatToShow, 
true));
PopUpManager.centerPopUp(popupWindow);
return popupWindow; 
}

Any idea?

Thanks



Re: [flexcoders] question about popup manager

2005-06-10 Thread Manish Jethani
On 6/10/05, Robert Brueckmann <[EMAIL PROTECTED]> wrote:

> Is there a way to set the depth of my menu so it is ALWAYS on top
> (DepthManager.setDepthTo(kTopmost)) for my menu VBox component?

YES!  It is POSSIBLE! :)

See this sample code.  It works.  The menu is always above the Alert box.


http://www.macromedia.com/2003/mxml";
  xmlns="*" creationComplete="showWindow()">
  
import mx.controls.Alert;
 
private var window:Alert;

public function raiseMenus():Void
{
  menuBar.getMenuAt(0).setDepthAbove(window);
}

public function showWindow():Void
{
  window = Alert.show("Move me close to the menu bar above, then
open the menu and see that it's higher than me.", "Window",
Alert.NONMODAL);
}
  
  

  

  
  

  

  



 
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/
 




RE: [flexcoders] question about popup manager

2005-06-09 Thread Robert Brueckmann
Maybe I'm not making sense when I explain what I want...I want my
left-hand navigation menu to ALWAYS be on top of EVERYTHING...no matter
how many pop-up windows I pop-up using the PopupManager, I still want
that left-hand menu to lay on top of everything...even these TitleWindow
pop-ups I'm openings using the PopupManager...is that possible?

Is there a way to set the depth of my menu so it is ALWAYS on top
(DepthManager.setDepthTo(kTopmost)) for my menu VBox component?

robert l. brueckmann
senior web developer
merlin securities
595 madison avenue
new york, ny 10022
p: 212.822.4821
f: 212.822.4820
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Manish Jethani
Sent: Thursday, June 09, 2005 2:35 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] question about popup manager

On 6/8/05, Robert Brueckmann <[EMAIL PROTECTED]> wrote:

[snip]

> Despite my call to set the depth of my menu above the News popup, the
depths
> are still the same and the news remains on top of everything else. 

> 
> Why isn't the setDepthAbove call working? 

It works only for siblings.  See this code, it doesn't work:


http://www.macromedia.com/2003/mxml";
  xmlns="*">
  


  

  
  


If you replace 'box2' with 'box2Parent' in the click handler for the
"Click Here" button, it'll work.  So I think you should try to find
the sibling for the menu in the TitleWindow's parent chain (or vice
versa) and then try to set the depth for it.


 
Yahoo! Groups Links



 


This message contains information from Merlin Securities, LLC, or from one of 
its affiliates, that may be confidential and privileged. If you are not an 
intended recipient, please refrain from any disclosure, copying, distribution 
or use of this information and note that such actions are prohibited. If you 
have received this transmission in error, please notify the sender immediately 
by telephone or by replying to this transmission.
 
Merlin Securities, LLC is a registered broker-dealer. Services offered through 
Merlin Securities, LLC are not insured by the FDIC or any other Federal 
Government Agency, are not deposits of or guaranteed by Merlin Securities, LLC 
and may lose value. Nothing in this communication shall constitute a 
solicitation or recommendation to buy or sell a particular security.


 
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/
 




Re: [flexcoders] question about popup manager

2005-06-09 Thread Manish Jethani
On 6/8/05, Robert Brueckmann <[EMAIL PROTECTED]> wrote:

[snip]

> Despite my call to set the depth of my menu above the News popup, the depths
> are still the same and the news remains on top of everything else. 

> 
> Why isn't the setDepthAbove call working? 

It works only for siblings.  See this code, it doesn't work:


http://www.macromedia.com/2003/mxml";
  xmlns="*">
  


  

  
  


If you replace 'box2' with 'box2Parent' in the click handler for the
"Click Here" button, it'll work.  So I think you should try to find
the sibling for the menu in the TitleWindow's parent chain (or vice
versa) and then try to set the depth for it.


 
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/
 




RE: [flexcoders] question about popup manager

2005-06-08 Thread Robert Brueckmann









Your example isn't working in this case Manish.  Here's exactly what
I'm doing.  User clicks on a link which executes the following code:

 

var win:TitleWindow = 

  TitleWindow(PopUpManager.createPopUp(

    this, News, false, {title: "Newsworthy", width:
650, height: 300, topLevel: menu}));

 

I am passing a reference to my lefthand navigation (menu) TO the
TitleWindow I’m opening up as a variable named topLevel.

 

Now, in my News.mxml file that gets opened up here I have in its
creationComplete a call to adjustDepth() which looks like this:

 

public function adjustDepth()
{

    trace("topLevel.depth: " +
topLevel.depth);

    trace("this.depth: " + this.depth);

    topLevel.setDepthAbove(this);

    trace("topLevel.depth: " + topLevel.depth);

    trace("this.depth: " + this.depth);

  }

 

When I click on the link to open the News popup, which I’m hoping
is partially obscured by the left-hand menu, it isn’t and the trace
output looks like this:

 

topLevel.depth: 4

this.depth: 42

topLevel.depth: 4

this.depth: 42

 

Despite my call to set the depth of my menu above the News popup, the
depths are still the same and the news remains on top of everything else.

 

Why isn’t the setDepthAbove call working?

 

robert l. brueckmann

senior web developer

merlin securities

595 madison avenue

new york,
ny 10022

p: 212.822.4821

f: 212.822.4820

 

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com] On
Behalf Of Manish Jethani
Sent: Tuesday, June 07, 2005 3:30 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] question about popup manager

 

On 6/7/05, Robert Brueckmann <[EMAIL PROTECTED]>
wrote:

 

> The TitleWindow, no matter what I try, remains on top of

> everything.  Is there a way around this?

 

There was a problem with menus not showing in a modal TitleWindow, but

it was easy to fix.

http://manish.revise.org/2005/04/menu-depths-in-modal-windows.html

 

 

 

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/

 

 

 




 



This message contains information from Merlin Securities, LLC, or from one of its affiliates, that may be confidential and privileged. If you are not an intended recipient, please refrain from any disclosure, copying, distribution or use of this information and note that such actions are prohibited. If you have received this transmission in error, please notify the sender immediately by telephone or by replying to this transmission.
 

Merlin Securities, LLC is a registered broker-dealer. Services offered through Merlin Securities, LLC are not insured by the FDIC or any other Federal Government Agency, are not deposits of or guaranteed by Merlin Securities, LLC and may lose value. Nothing in this communication shall constitute a solicitation or recommendation to buy or sell a particular security.







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 the Yahoo! Terms of Service.










Re: [flexcoders] question about popup manager

2005-06-07 Thread Manish Jethani
On 6/7/05, Robert Brueckmann <[EMAIL PROTECTED]> wrote:

> The TitleWindow, no matter what I try, remains on top of
> everything.  Is there a way around this?

There was a problem with menus not showing in a modal TitleWindow, but
it was easy to fix.
http://manish.revise.org/2005/04/menu-depths-in-modal-windows.html


 
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/
 




[flexcoders] question about popup manager

2005-06-07 Thread Robert Brueckmann
I'm creating a non-modal TitleWindow pop-up using the PopupManager and
immediately after the pop-up is created I'm calling the swapDepthBelow
method on the TitleWindow object with this left-hand menu component I
have so the window I just popped up is partially obscured and the
left-hand navigation always maintains top-level precedence.  It's not
working.  The TitleWindow, no matter what I try, remains on top of
everything.  Is there a way around this?

robert l. brueckmann
senior web developer
merlin securities
595 madison avenue
new york, ny 10022
p: 212.822.4821
f: 212.822.4820
 


This message contains information from Merlin Securities, LLC, or from one of 
its affiliates, that may be confidential and privileged. If you are not an 
intended recipient, please refrain from any disclosure, copying, distribution 
or use of this information and note that such actions are prohibited. If you 
have received this transmission in error, please notify the sender immediately 
by telephone or by replying to this transmission.
 
Merlin Securities, LLC is a registered broker-dealer. Services offered through 
Merlin Securities, LLC are not insured by the FDIC or any other Federal 
Government Agency, are not deposits of or guaranteed by Merlin Securities, LLC 
and may lose value. Nothing in this communication shall constitute a 
solicitation or recommendation to buy or sell a particular security.


 
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/