Re: [flexcoders] popup on screen certer?

2012-02-17 Thread Jeff Gomes
PopUpManager.centerPopUp(pop);

On 2/17/2012 14:36, markflex2007 wrote:
 Hi

   I uses:SkinnablePopUpContainer  build a pop component for mobile app

   and use the following code to call the popup

   var pop:PopUpWindows =  new PopUpWindows(); 
   pop.open(this,true);


   but the popup always in top-left location of current page. how to make the 
 popup on screen certer

   please help

   Thanks for help

   Mark
   



 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Alternative FAQ location: 
 https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
 Search Archives: 
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links






Re: [flexcoders] Popup focus issue, seems very broken

2010-03-09 Thread Alex Harui
Try using an Alert instead of the TitleWindow.  If that works, then there is 
probably code in the titleWindow causing problems, otherwise it is probably 
code in the app.  You can try tracing out focusIn/focusOut events to see what 
is going on.


On 3/9/10 4:15 AM, Nigel Magnay nigel.mag...@gmail.com wrote:






I have a very odd issue in my Flex3 app.

I have a popup that is an mx:TitleWindow, instantiated with the
popupManager in the normal way. It has a number of buttons, and a
canvas. On creationComplete, an additional control is dynamically
added to the canvas using childCanvas.addChild().

Everything works perfectly, *except* that the focus does not arrive in
the popup; it remains in the background application window (which is
blurred out as normal). On tabbing, I can observe the blue focus
rectangle moving about the old top-level window.

This doesn't always happen- but in about 75% of cases it does. If I
manually set the focus into the popup (e.g into a textfield or a
button), then tabbing continues to only have an effect in the wrong
window.

I've tried explicitly setting the focus in the creationComplete method
(setFocus), both in the popup and from the outer container but no
dice. I've tried making the added component trivially simple, and it
still seems to cause it to break.

Any good ideas, or is this just terminally broken?





--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] Popup Window

2009-09-15 Thread abhijit chore
Hi,
 You can use
Application.application.width
Application.application.height

to set the width and height so that toolbar will be visible to click close
button.

Regards,
Abhijit

On Tue, Sep 15, 2009 at 5:41 PM, smyrin smy...@yahoo.com wrote:



 I have noticed a problem with pop up windows being too large for the
 browser on netbooks thereby hiding the close button and title bar to allow
 dragging. Any easy suggestions for fixing?

  




-- 
I may be miles away... but I am just a mail away so keep mailing...

Cheers,
Abhijit


RE: [flexcoders] Popup Help Bubble?

2009-08-31 Thread Tracy Spratt
Tooltip?

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of dfalling
Sent: Monday, August 31, 2009 12:39 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Popup Help Bubble?

 

  

I could have sworn I saw a flex component to do this, but I can't find it.
Is there a good component/method of showing multiple help popups all over
the screen? I want a way to annotate numerous controls and buttons at the
same time, to point out new features in an application.





RE: [flexcoders] PopUp databinding - possible?

2009-08-07 Thread Tracy Spratt
Sure.  In the pop-up, define a bindable variable, say

[Bindable]private var  _app:MyMainAppFileName;

 

In a creation complete handler, assign:

_var = Application.application as MyMainAppFileName;

 

Now you can bind to any bindable property in MyMainAppFileName

 

If that is backwards to what you want, then I advise dispatching events from
the Pop-up.  Remember, binding is just an event mechanism that is created by
the compiler.

 

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Dave Cates
Sent: Friday, August 07, 2009 10:01 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] PopUp databinding - possible?

 

  

Hi all,

I have an mxml component that I am displaying via the popup manager method.

But, I have data that is sent to this popup that needs to be data bound -
database updates etc.

So, how do you databind to the vars inside the popup? If the MXML component
was on the stage as normal I'd have no problems but the popup, my nature, is
created at run-time.

So is it possible and if so, how?!

Thanks!
Dave. 





Re: [flexcoders] PopUp databinding - possible?

2009-08-07 Thread Dave Cates
Hi Tracey,

Thanks for your advice.

The compiler is ing Œaccess of undefined property Application¹

Any ideas?

Thanks,
Dave.

From: Tracy Spratt tr...@nts3rd.com
Reply-To: flexcoders@yahoogroups.com
Date: Fri, 7 Aug 2009 10:31:06 -0400
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] PopUp databinding - possible?

 
 
 

Sure.  In the pop-up, define a bindable variable, say
[Bindable]private var  _app:MyMainAppFileName;
 
In a creation complete handler, assign:
_var = Application.application as MyMainAppFileName;
 
Now you can bind to any bindable property in MyMainAppFileName
 
If that is backwards to what you want, then I advise dispatching events from
the Pop-up.  Remember, binding is just an event mechanism that is created by
the compiler.
 
 

Tracy Spratt,
Lariat Services, development services available


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Dave Cates
Sent: Friday, August 07, 2009 10:01 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] PopUp databinding - possible?
 
  

Hi all,

I have an mxml component that I am displaying via the popup manager method.

But, I have data that is sent to this popup that needs to be data bound ­
database updates etc.

So, how do you databind to the vars inside the popup? If the MXML component
was on the stage as normal I¹d have no problems but the popup, my nature, is
created at run-time.

So is it possible and if so, how?!

Thanks!
Dave. 
  


 



RE: [flexcoders] PopUp vs other containers

2009-07-17 Thread Tracy Spratt
Just as you say, use a pop up when you need a component that is above the
rest of the app, and perhaps needs to be moved.

 

You can do the same this with other components, but PopUps save you a lot of
coding.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of vladakg85
Sent: Friday, July 17, 2009 4:52 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] PopUp vs other containers

 

  

How to decide do I need PopUp window or Title Window component for example?

If I have button in my application and I want to after click new window
shows on the screen which I can move, add other components on it bla bla...
should I here use PopUpManager or something else. When and why to use
PopUps?





RE: [flexcoders] Popup in new Browser window

2009-07-06 Thread Tracy Spratt
Are you committed to using a new browser window?  Why not use a non-modal
popup?

 

You could do it with a separate browser, but it would be much harder.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of ferrari_hunk
Sent: Friday, July 03, 2009 5:42 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Popup in new Browser window

 






Hi,

I am facing some trouble on working with Popups. In my application, I have 2
panels, leftPanel(contains a tree) and rightPanel(shows charts/live data
from DB based on the selected tree leaf and it autorefreshes every 10
seconds). I am trying to implement a functionality in which I have a
button(show in new window) in the rightPanel, and on clicking the button, I
would like the current contents of the right panel to be presented in a new
Browser Window. The user can then choose some other tree leaf(from
leftPanel) and view other chart on the rightPanel, while the popped up
browser window still show data pertaining to the first tree leaf.

Can someone please help me out?

Thanks





re: [flexcoders] Popup a panel in new browser window

2009-07-02 Thread Wally Kolcz

Use mx.managers.PopUpManager and then use either addPopUp (if 
in a component)  or createPopUp (if creating it on the fly) 
. 

Once you create or added a popup, use CenterPopUp(this) to have it center in 
the screen or else it will pop up at 0,0



From: ferrari_hunk brianfer...@yahoo.co.in
Sent: Thursday, July 02, 2009 5:36 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Popup a panel in new browser window 

Hi,

I am very new to flex. Can you let me know how can we pop up data in a panel in 
a new browser window?

I was able to use TitleWindow property, but that will not pop up in a new 
browser window. Please help.

Thanks






Re: [flexcoders] popup systemManager not working

2009-05-28 Thread hoz

Here's my custom event, which works well with other applications...
package com.event
{
import flash.events.Event;
import com.vo.NewMemberInfo;

public class SendNewMember extends Event {
  
public var newmemberinfo:NewMemberInfo;
   
//Constructor
public function SendNewMember(type:String,
newmemberinfo:NewMemberInfo) {
super(type);
this.newmemberinfo = newmemberinfo;
}

override public function clone():Event {
return new SendNewMember(type, newmemberinfo);
}

}
}

valdhor-3 wrote:
 
 Is the SendNewMember event set to bubble?
 
 --- In flexcoders@yahoogroups.com, Mark Hosny h...@... wrote:

 Hey guys,
 
 For some reason when I dispatch a custom event via the pop up, my  
 main app isn't receiving the event.
 
 In my main app I have a custom component called search, which  
 contains a button to open up a pop window called new member. In my  
 pop up I have this:
 
 mx:Metadata
  [Event(name=onSendNewMember,type=com.event.SendNewMember)]
 /mx:Metadata
 
 private function submitForm():void
  {
  newmemberinfo = new NewMemberInfo();
  newmemberinfo.HOHlastName = HOHlastName_txt.text;
  
  !---abbreviate VO's for space---
  
  dispatchEvent(new SendNewMember 
 (onSendNewMember,newmemberinfo));
  }
 
 Then in my main app
 
 application.systemManager.addEventListener 
 (onSendNewMember,onSendNewMember);
 
 private function onSendNewMember(event:SendNewMember):void
  {
  Alert.show('GOT IT');
  }
 
 
 thanks,
 
 hoz

 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/popup-systemManager-not-working-tp23765693p23767440.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] popup systemManager not working

2009-05-28 Thread hoz

Hey guys,

I added bubbles to true in my custom event, and it worked! OK, so I'm a
little puzzled b/c I have other custom events going without having to add
that. I thought Bubbles default was true...


hoz wrote:
 
 Here's my custom event, which works well with other applications...
 package com.event
 {
 import flash.events.Event;
 import com.vo.NewMemberInfo;
 
 public class SendNewMember extends Event {
   
 public var newmemberinfo:NewMemberInfo;

 //Constructor
 public function SendNewMember(type:String,
 newmemberinfo:NewMemberInfo) {
 super(type);
 this.newmemberinfo = newmemberinfo;
 }
 
 override public function clone():Event {
 return new SendNewMember(type, newmemberinfo);
 }
 
 }
 }
 
 valdhor-3 wrote:
 
 Is the SendNewMember event set to bubble?
 
 --- In flexcoders@yahoogroups.com, Mark Hosny h...@... wrote:

 Hey guys,
 
 For some reason when I dispatch a custom event via the pop up, my  
 main app isn't receiving the event.
 
 In my main app I have a custom component called search, which  
 contains a button to open up a pop window called new member. In my  
 pop up I have this:
 
 mx:Metadata
 [Event(name=onSendNewMember,type=com.event.SendNewMember)]
 /mx:Metadata
 
 private function submitForm():void
  {
 newmemberinfo = new NewMemberInfo();
 newmemberinfo.HOHlastName = HOHlastName_txt.text;
 
 !---abbreviate VO's for space---
 
  dispatchEvent(new SendNewMember 
 (onSendNewMember,newmemberinfo));
  }
 
 Then in my main app
 
 application.systemManager.addEventListener 
 (onSendNewMember,onSendNewMember);
 
 private function onSendNewMember(event:SendNewMember):void
 {
 Alert.show('GOT IT');
  }
 
 
 thanks,
 
 hoz

 
 
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/popup-systemManager-not-working-tp23765693p23767562.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] popup systemManager not working

2009-05-28 Thread hoz

Thanks!

Those crazy pop ups!! They do serve a good purpose, and hopefully this will
give a little insight for those who try to tackle them in their projects.


hoz wrote:
 
 Hey guys,
 
 For some reason when I dispatch a custom event via the pop up, my  
 main app isn't receiving the event.
 
 In my main app I have a custom component called search, which  
 contains a button to open up a pop window called new member. In my  
 pop up I have this:
 
 mx:Metadata
   [Event(name=onSendNewMember,type=com.event.SendNewMember)]
 /mx:Metadata
 
 private function submitForm():void
  {
   newmemberinfo = new NewMemberInfo();
   newmemberinfo.HOHlastName = HOHlastName_txt.text;
   
   !---abbreviate VO's for space---
   
  dispatchEvent(new SendNewMember 
 (onSendNewMember,newmemberinfo));
  }
 
 Then in my main app
 
 application.systemManager.addEventListener 
 (onSendNewMember,onSendNewMember);
 
 private function onSendNewMember(event:SendNewMember):void
   {
   Alert.show('GOT IT');
  }
 
 
 thanks,
 
 hoz
 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/popup-systemManager-not-working-tp23765693p23767934.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] popup systemManager not working

2009-05-28 Thread Manish Jethani
On Fri, May 29, 2009 at 12:08 AM, hoz h...@satx.rr.com wrote:

 I added bubbles to true in my custom event, and it worked! OK, so I'm a
 little puzzled b/c I have other custom events going without having to add
 that. I thought Bubbles default was true...

bubbles is false by default.

It's not the popups that's the problem, it's the fact that you're not
listening for the event on the popup object itself.

If you did this:

  popup.addEventListener(...)

... it would work, without bubbles set to true.

Manish


RE: [flexcoders] Popup window close button fails

2009-05-06 Thread Tracy Spratt
It is not automatic.  The button just dispatches the close event.  You need
to define a close event handler. And in that do
PopUpmanager.removePopUp(this).

 

Though  more often, I just dispatch a custom named event, and have in a
listener/handler in the component that created the popup, and in that
handler, I get what data I need from the popup on close, like status(ok,
cancel) and value if any, then call PopUpmanager.removePopUp(event.target).

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Tom McNeer
Sent: Wednesday, May 06, 2009 5:43 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Popup window close button fails

 






In the application I'm creating, I have a few popups. Each has the
showCloseWindow attribute set to true, and sure enough, the button is
there. But it won't close the window when clicked.

?

-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumco http://www.mediumcool.com ol.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560





Re: [flexcoders] Popup window close button fails

2009-05-06 Thread Tom McNeer
Hi Tracy,

Thanks for the explanation. I knew the close event was fired. But I guess I
thought the default close event also called the PopUpManager.

Maybe it's me, but I think the Lang Ref could be a little clearer about
this.

Thanks for straightening me out, anyway.


-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


RE: [flexcoders] Popup window stays open with history management enabled

2008-12-05 Thread Alex Harui
I would  use BrowserManager and clear the popup on the url changes

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Erich 
Cervantez
Sent: Friday, December 05, 2008 11:17 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Popup window stays open with history management enabled


So I have a ViewStack with history management enabled (and enabled in
the Application tag).

This enables the user to click the browser's Back and Forward buttons
while in the application and it will move the user back or forward
through each screen they've visited.

Now if one of those screens opens a popup window, clicking the Back
and Forward buttons still cycles through each screen in the browser
history but the popup stays on the screen! (you can see the views
changing behind the popup as you move back and forth)

Ideally the popup window should disappear once you hit the Back button
and come back when you hit the Forward button, but is this even possible?



RE: [flexcoders] popup changes title only in IE

2008-08-27 Thread Alex Harui
Sounds like a bug.  Make a simple test case and file it.  Try turning of
historyManagementEnabled if you aren't using it

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of paulbohnenkamp
Sent: Wednesday, August 27, 2008 1:24 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] popup changes title only in IE

 

I have a lot of popups in my app and in IE I'm seeing the title change 
when one of the popups is launched. The title changes to something 
like #app=...

Is there a way to fix this? I want the title to always stay the same.

 



Re: [flexcoders] popup window

2008-07-31 Thread Dan Vega
Perfect! Thank you so much...

Thank You
Dan Vega


On Thu, Jul 31, 2008 at 1:50 AM, Alex Harui [EMAIL PROTECTED] wrote:

text.percentWidth=100


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Dan Vega
 *Sent:* Wednesday, July 30, 2008 9:04 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] popup window



 I understand the width as a percentage but in as3 you can't do that because
 its looking for a number.


 If i do

 var text:Text = new Text();
 text.width = 100%;

 I get an error.

 Is there a way to figure out available space?

  On Wed, Jul 30, 2008 at 11:55 PM, Sid Maskit [EMAIL PROTECTED] wrote:

 Two things. First, a label can only display a single line. If you want
 multiline text, you should use a Text component. Second, Text components
 automatically wrap if, and only if, they have their width set. I believe you
 can set it to a percentage, and it will still wrap, but you have to set it
 to something.

 On a side note, this may seem like a hack, but how else can the system know
 what it should do?



 - Original Message 
 From: Dan Vega [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Wednesday, July 30, 2008 8:24:50 PM
 Subject: [flexcoders] popup window

 I have a popup window (a quick about win) and I am having an issue. How can
 I add a bunch of text to the title windows content area. If I just add the
 text it runs off the screen. I can set the width but that seems like a bit
 of a hack to me. I know im probably just missing something dumb here.

 private function showAbout(event: MouseEvent) :void {
 // the popup window
 _popup = new TitleWindow( );
 _popup.title = About this component;
 _popup.width = 400;
 _popup.height = 200;
 _popup.showCloseBut ton = true;
 _popup.addEventList ener(CloseEvent. CLOSE,closeAbout
 Window);

 var label:Label= new Label();
 label.text =  * * *
 * *  +
  * * * * *  +
  * * * * *  +
  * * * * *  +


 _popup.addChild( label);
 _popup.autoLayout = true;

 PopUpManager. addPopUp( _popup,container );
 PopUpManager. centerPopUp( _popup);
 }


 Thank You
 Dan Vega

 [EMAIL PROTECTED] com [EMAIL PROTECTED]
 http://www.danvega. org http://www.danvega.org





  



Re: [flexcoders] popup window

2008-07-30 Thread Sid Maskit
Two things. First, a label can only display a single line. If you want 
multiline text, you should use a Text component. Second, Text components 
automatically wrap if, and only if, they have their width set. I believe you 
can set it to a percentage, and it will still wrap, but you have to set it to 
something.

On a side note, this may seem like a hack, but how else can the system know 
what it should do?



- Original Message 
From: Dan Vega [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, July 30, 2008 8:24:50 PM
Subject: [flexcoders] popup window


I have a popup window (a quick about win) and I am having an issue. How can I 
add a bunch of text to the title windows content area. If I just add the text 
it runs off the screen. I can set the width but that seems like a bit of a hack 
to me. I know im probably just missing something dumb here.

private function showAbout(event: MouseEvent) :void {
// the popup window
_popup = new TitleWindow( );
_popup.title = About this component;
_popup.width = 400;
_popup.height = 200;
_popup.showCloseBut ton = true;
_popup.addEventList ener(CloseEvent. CLOSE,closeAbout Window);

var label:Label= new Label();
label.text =  * * * 
* *  +
 * * * * *  +
 * * * * *  +
 * * * * *  +


_popup.addChild( label);
_popup.autoLayout = true;

PopUpManager. addPopUp( _popup,container );
PopUpManager. centerPopUp( _popup);
}


Thank You
Dan Vega
[EMAIL PROTECTED] com
http://www.danvega. org



  

Re: [flexcoders] popup window

2008-07-30 Thread Dan Vega
I understand the width as a percentage but in as3 you can't do that because
its looking for a number.


If i do

var text:Text = new Text();
text.width = 100%;

I get an error.

Is there a way to figure out available space?


On Wed, Jul 30, 2008 at 11:55 PM, Sid Maskit [EMAIL PROTECTED] wrote:

   Two things. First, a label can only display a single line. If you want
 multiline text, you should use a Text component. Second, Text components
 automatically wrap if, and only if, they have their width set. I believe you
 can set it to a percentage, and it will still wrap, but you have to set it
 to something.

 On a side note, this may seem like a hack, but how else can the system know
 what it should do?

 - Original Message 
 From: Dan Vega [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Wednesday, July 30, 2008 8:24:50 PM
 Subject: [flexcoders] popup window

  I have a popup window (a quick about win) and I am having an issue. How
 can I add a bunch of text to the title windows content area. If I just add
 the text it runs off the screen. I can set the width but that seems like a
 bit of a hack to me. I know im probably just missing something dumb here.

 private function showAbout(event: MouseEvent) :void {
 // the popup window
 _popup = new TitleWindow( );
 _popup.title = About this component;
 _popup.width = 400;
 _popup.height = 200;
 _popup.showCloseBut ton = true;
 _popup.addEventList ener(CloseEvent. CLOSE,closeAbout
 Window);

 var label:Label= new Label();
 label.text =  * * *
 * *  +
  * * * * *  +
  * * * * *  +
  * * * * *  +


 _popup.addChild( label);
 _popup.autoLayout = true;

 PopUpManager. addPopUp( _popup,container );
 PopUpManager. centerPopUp( _popup);
 }


 Thank You
 Dan Vega
 [EMAIL PROTECTED] com [EMAIL PROTECTED]
 http://www.danvega. org http://www.danvega.org

  



RE: [flexcoders] popup window

2008-07-30 Thread Alex Harui
text.percentWidth=100

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Dan Vega
Sent: Wednesday, July 30, 2008 9:04 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] popup window

 

I understand the width as a percentage but in as3 you can't do that
because its looking for a number.


If i do 

var text:Text = new Text();
text.width = 100%;

I get an error.

Is there a way to figure out available space? 



On Wed, Jul 30, 2008 at 11:55 PM, Sid Maskit [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

Two things. First, a label can only display a single line. If you want
multiline text, you should use a Text component. Second, Text components
automatically wrap if, and only if, they have their width set. I believe
you can set it to a percentage, and it will still wrap, but you have to
set it to something.

On a side note, this may seem like a hack, but how else can the system
know what it should do?

 

- Original Message 
From: Dan Vega [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] 
To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com 
Sent: Wednesday, July 30, 2008 8:24:50 PM
Subject: [flexcoders] popup window

I have a popup window (a quick about win) and I am having an issue. How
can I add a bunch of text to the title windows content area. If I just
add the text it runs off the screen. I can set the width but that seems
like a bit of a hack to me. I know im probably just missing something
dumb here.

private function showAbout(event: MouseEvent) :void {
// the popup window
_popup = new TitleWindow( );
_popup.title = About this component;
_popup.width = 400;
_popup.height = 200;
_popup.showCloseBut ton = true;
_popup.addEventList ener(CloseEvent. CLOSE,closeAbout
Window);

var label:Label= new Label();
label.text =  * * *
* *  +
 * * * * *  +
 * * * * *  +
 * * * * *  +


_popup.addChild( label);
_popup.autoLayout = true;

PopUpManager. addPopUp( _popup,container );
PopUpManager. centerPopUp( _popup);
}


Thank You
Dan Vega

[EMAIL PROTECTED] com mailto:[EMAIL PROTECTED] 
http://www.danvega. org http://www.danvega.org 

 

 

 



RE: [flexcoders] Popup - listening to close

2008-06-30 Thread Tracy Spratt
Hmm, I don't know.  I always dispatch my own named event when closing a
PopUp.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markgoldin_2000
Sent: Monday, June 30, 2008 2:23 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Popup - listening to close

 

Here is code:

var popupWindow:TitleWindow = new TitleWindow;
popupWindow = showPopupWindow(boxingArea, jobMaintenance);
popupWindow.addEventListener(close, jobActions);

public function jobActions(event:Event):void 
{
trace(event.target);
}

I am getting into jobActions when I click on Popup's close button but I 
am not getting in there when I click on a regular Button (in popup) 
with code:
click=PopUpManager.removePopUp(this)
This click closes the Popup window but no close event is triggered.
Is that right?

Thanks

 



Re: [flexcoders] popup is taller than browser window/ vertical scroll bar??

2008-06-28 Thread pfk456cr
josh,

i want the scrollbar to appear on the popup not the app.  is this
easily done?  any ideas?
thanks.
pat
---

You need to force the popup to not be bigger than the browser window
with maxHeight or something similar. Popups that are too big won't
cause a scrollbar to appear on the application because in the display
list they're parented by systemManager, not the Application itself.

-Josh

On Sat, Jun 28, 2008 at 12:01 PM, pfk456cr [EMAIL PROTECTED] wrote:

i have some popups that have their height property greater than the
height of the browser window.  the close button on the popup is
getting clipped and setting verticalScrollPolicy on doesn't function.
 anyone have any ideas how i can force the popup (based on canvas) to
have vertical scroll bars that function, or any other good ideas?
 thanks.






Re: [flexcoders] popup is taller than browser window/ vertical scroll bar??

2008-06-27 Thread Josh McDonald
You need to force the popup to not be bigger than the browser window with
maxHeight or something similar. Popups that are too big won't cause a
scrollbar to appear on the application because in the display list they're
parented by systemManager, not the Application itself.

-Josh

On Sat, Jun 28, 2008 at 12:01 PM, pfk456cr [EMAIL PROTECTED] wrote:

 i have some popups that have their height property greater than the
 height of the browser window.  the close button on the popup is
 getting clipped and setting verticalScrollPolicy on doesn't function.
  anyone have any ideas how i can force the popup (based on canvas) to
 have vertical scroll bars that function, or any other good ideas?  thanks.


 

 --
 Flexcoders Mailing List
 FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 Search Archives:
 http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
 Links






-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


Re: [flexcoders] popup timeout

2008-05-28 Thread Luke Vanderfluit
Hi

I solved this one as follows:
See the code (changed) below, Basically the timer needs to be stopped for it to 
run its 
entire 2 seconds each time...

Haha Viva Flex!

Kr.
Luke.


Luke Vanderfluit wrote:
 Hi.
 
 Im trying to get a popup that says Details Saved when I save data.
 The popup should stay up for 2 seconds and then go away.
 
 I currently have the following code:
 
  private var puWin:IFlexDisplayObject;

private var myTimer:Timer;

 
  private function sdPopup():void {
  puWin = PopUpManager.createPopUp(
  this, DetailsSavedPopup, true);
myTimer:Timer = new Timer(2000, 0);
  myTimer.addEventListener(timer, timerHandler);
  myTimer.start();
  }
  public function timerHandler(event:TimerEvent):void {
  PopUpManager.removePopUp(puWin);
myTimer.stop();
  //trace(timerHandler:  + event);
  }
 
 
 The problem here is that the times are not consistent.
 The first time I save the timeout is 2 seconds, then if I save again 
 (immediately or after 
 5 seconds or so) the popup barely stays up at all, then on continued saves, 
 it's 
 inconsistent...
 
 Is there anything in the code causing this?
 Is there another (simpler way of doing this);
 
 
 This is my popup component:
 ?xml version=1.0 encoding=utf-8?
 mx:TitleWindow xmlns:mx=http://www.adobe.com/2006/mxml;
   width=200 height=100
   mx:Text text=Details Saved...
   x=47.5 y=33
   width=105 height=35
   fontWeight=bold/
 /mx:TitleWindow
 
 Kr.
 Luke.
 


-- 
Luke Vanderfluit
Analyst / Web Programmer
e3Learning.com.au
08 8221 6422


Re: [flexcoders] popup timeout

2008-05-28 Thread Sherif Abdou
make sure u remove the event listener too , u keep repeating by adding them 
every time but you never remove them when they are done.


- Original Message 
From: Luke Vanderfluit [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Wednesday, May 28, 2008 8:15:54 PM
Subject: Re: [flexcoders] popup timeout


Hi

I solved this one as follows:
See the code (changed) below, Basically the timer needs to be stopped for it to 
run its 
entire 2 seconds each time...

Haha Viva Flex!

Kr.
Luke.

Luke Vanderfluit wrote:
 Hi.
 
 Im trying to get a popup that says Details Saved when I save data.
 The popup should stay up for 2 seconds and then go away.
 
 I currently have the following code:
 
  private var puWin:IFlexDisplayO bject;

private var myTimer:Timer;

 
  private function sdPopup():void {
  puWin = PopUpManager. createPopUp(
  this, DetailsSavedPopup, true);
myTimer:Timer = new Timer(2000, 0);
  myTimer.addEventLis tener(timer , timerHandler) ;
  myTimer.start( );
  }
  public function timerHandler( event:TimerEvent ):void {
  PopUpManager. removePopUp( puWin);
myTimer.stop( );
  //trace(timerHandl er:  + event);
  }
 
 
 The problem here is that the times are not consistent.
 The first time I save the timeout is 2 seconds, then if I save again 
 (immediately or after 
 5 seconds or so) the popup barely stays up at all, then on continued saves, 
 it's 
 inconsistent. ..
 
 Is there anything in the code causing this?
 Is there another (simpler way of doing this);
 
 
 This is my popup component:
 ?xml version=1.0 encoding=utf- 8?
 mx:TitleWindow xmlns:mx=http://www.adobe. com/2006/ mxml
   width=200 height=100 
   mx:Text text=Details Saved...
   x=47.5 y=33
   width=105 height=35
   fontWeight= bold/
 /mx:TitleWindow
 
 Kr.
 Luke.
 

-- 
Luke Vanderfluit
Analyst / Web Programmer
e3Learning.com. au
08 8221 6422



  

Re: [flexcoders] popup timeout

2008-05-28 Thread Josh McDonald
I would (and do) just use a new instance of the fade effect, and remove the
popup (or set visibilty = false, effects=[]) on effectComplete or whatever
event is generated when the effect ends. Fade lets you set both a fade time
and a start delay.

-J

On Thu, May 29, 2008 at 11:19 AM, Sherif Abdou [EMAIL PROTECTED] wrote:

   make sure u remove the event listener too , u keep repeating by adding
 them every time but you never remove them when they are done.

 - Original Message 
 From: Luke Vanderfluit [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Wednesday, May 28, 2008 8:15:54 PM
 Subject: Re: [flexcoders] popup timeout

  Hi

 I solved this one as follows:
 See the code (changed) below, Basically the timer needs to be stopped for
 it to run its
 entire 2 seconds each time...

 Haha Viva Flex!

 Kr.
 Luke.

 Luke Vanderfluit wrote:
  Hi.
 
  Im trying to get a popup that says Details Saved when I save data.
  The popup should stay up for 2 seconds and then go away.
 
  I currently have the following code:
 
  private var puWin:IFlexDisplayO bject;

 private var myTimer:Timer;

 
  private function sdPopup():void {
  puWin = PopUpManager. createPopUp(
  this, DetailsSavedPopup, true);
 myTimer:Timer = new Timer(2000, 0);
  myTimer.addEventLis tener(timer , timerHandler) ;
  myTimer.start( );
  }
  public function timerHandler( event:TimerEvent ):void {
  PopUpManager. removePopUp( puWin);
 myTimer.stop( );
  //trace(timerHandl er:  + event);
  }
 
 
  The problem here is that the times are not consistent.
  The first time I save the timeout is 2 seconds, then if I save again
 (immediately or after
  5 seconds or so) the popup barely stays up at all, then on continued
 saves, it's
  inconsistent. ..
 
  Is there anything in the code causing this?
  Is there another (simpler way of doing this);
 
 
  This is my popup component:
  ?xml version=1.0 encoding=utf- 8?
  mx:TitleWindow xmlns:mx=http://www.adobe. com/2006/ 
  mxmlhttp://www.adobe.com/2006/mxml
 
  width=200 height=100 
  mx:Text text=Details Saved...
  x=47.5 y=33
  width=105 height=35
  fontWeight= bold/
  /mx:TitleWindow
 
  Kr.
  Luke.
 

 --
 Luke Vanderfluit
 Analyst / Web Programmer
 e3Learning.com. au
 08 8221 6422

  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


RE: [flexcoders] popUp property null on creationComplete

2008-03-22 Thread Alex Harui
The popup isn't created until just before the OPEN event, so I'd listen
for that and set the itemrenderer then.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of geraldshastri
Sent: Saturday, March 22, 2008 1:54 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] popUp property null on creationComplete

 

I am using a popUpMenuButton inside an MXML component but trying to
set an itemRenderer fails since the popUp property is null even after
the creationComplete event is fired. Does anyone have a clue to this?

 



Re: [flexcoders] Popup over a form

2008-02-13 Thread Tom Chiverton
On Tuesday 12 Feb 2008, markgoldin_2000 wrote:
 that form to PopUpManager. But after PopUpManager.centerPopUp the popup
 is not centered inside of the form. Can someone help, please? Also I

What did you use as the arguments to the two calls to PopUpManager ?

-- 
Tom Chiverton
Helping to efficiently utilize efficient bandwidth
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.


--
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/
 


RE: [flexcoders] PopUp Containers and Scrolling Issues

2008-02-08 Thread Alex Harui
That didn't quite make sense to me.  The taller box is usually the one
that gets scrollbars.  Set minHeight=0 on whatever container you want to
have the scrollbar.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Corey Smaller
Sent: Friday, February 08, 2008 2:28 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] PopUp Containers and Scrolling Issues

 

ok, I have two VBoxes in my popup. and if the content on the left Vbox
is greater than the hieght of the popup window a Vscroll bar should
be present. So, I only want the VBox on the right to scroll, not all
the popup content. 

When I change the mx:TitleWindow verticalscrollpolicty=off NO
Vscrollbars are allowed, even if at a local level in the VBox i enable
the VScrollpolicy. anyone know how to get around this?

 



RE: [flexcoders] popup a module

2007-05-22 Thread Alex Harui
Hmm, hadn't noticed that.  That's because the module is the popup and parents 
the title window.

I guess I'd copy the dragging logic from Panel.as into the module.

Write back if you have troubles doing that.

-Alex

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Luis 
Eduardo
Sent: Monday, May 21, 2007 9:53 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] popup a module


Alex, i tried your samples and they work almost perfect.  But yet i 
could not make the poped-up window move around the screen with the user 
interaction.
It seems that the new window just come and go but cant be dragged away.
I tried too the sample that have ShareCode and put the 2 managers 
(dragManager and popupManager) and yet didnt work.

Can you explain how to make the new poped-up window be free to move 
with user mouse interaction?

many thanks!

Luís Eduardo.


Luis Eduardo escreveu:

Cool! i was able to find just the .ppt presentation before.
Now that you give the link to your blog i found the sample codes. Will 
try again with a better start.

thank you very much Alex!

btw, the presentation was amazing. Very clarificate about the under 
hood :)


Alex Harui escreveu:

  

There's an example on my blog blogs.adobe.com/aharui



*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
*On Behalf Of *Luis Eduardo
*Sent:* Monday, May 21, 2007 6:10 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] popup a module


Hello, i am trying to do a mx:Module being Popuped but i am finding
this very dificult.
My classes are like this: MyWindow - MyTitleWindow - mx:TitleWindow
The code works very fine if i run it all together (without
modules). But when i split the swf i cannot popup MyWindow class.

here is the sample that works, but without modules. This is the
behaviour i seek. Is it possible with modules?

?xml version=1.0 encoding=utf-8?
!-- MainApp.mxml --
mx:Application
xmlns:mx=http://www.adobe.com/2006/mxml 
http://www.adobe.com/2006/mxml
mx:Button label=show click=showTheWindow()/
mx:Script
![CDATA[
import mx.managers.PopUpManagerChildList;
import mx.managers.PopUpManager;

public function showTheWindow():void {
PopUpManager.centerPopUp(
PopUpManager.createPopUp(DisplayObject(Application.application),
MyWindow, false, PopUpManagerChildList.APPLICATION) );
}
]]
/mx:Script
/mx:Application
---
?xml version=1.0 encoding=utf-8?
!-- MyWindow.mxml --
local:MyTitleWindow
xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml
xmlns:local=*
width=400 height=300 showCloseButton=true
close=PopUpManager.removePopUp(this)
mx:Label text=HERE IS THE WINDOW !!!/
mx:Script
![CDATA[
import mx.managers.PopUpManager;
]]
/mx:Script
/local:MyTitleWindow

?xml version=1.0 encoding=utf-8?
!-- MyTitleWindow.mxml --
mx:TitleWindow
xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml
width=400 height=300
/mx:TitleWindow
---

i found a PowerPoint from Alex Harui but it don't compile. I made some
adjust to compile the example but not work ok.
here is the link:
blogs.adobe.com/aharui/360*Flex*2007/*Module*s.ppt/*Module*s.ppt

can someone give any help?

- Luís Eduardo.

 






--
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




  




--
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





RE: [flexcoders] popup a module

2007-05-21 Thread Alex Harui
There's an example on my blog blogs.adobe.com/aharui

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Luis 
Eduardo
Sent: Monday, May 21, 2007 6:10 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] popup a module

 


Hello, i am trying to do a mx:Module being Popuped but i am finding 
this very dificult.
My classes are like this: MyWindow - MyTitleWindow - mx:TitleWindow
The code works very fine if i run it all together (without 
modules). But when i split the swf i cannot popup MyWindow class.

here is the sample that works, but without modules. This is the 
behaviour i seek. Is it possible with modules?

?xml version=1.0 encoding=utf-8?
!-- MainApp.mxml --
mx:Application
xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml 
mx:Button label=show click=showTheWindow()/
mx:Script
![CDATA[
import mx.managers.PopUpManagerChildList;
import mx.managers.PopUpManager;

public function showTheWindow():void {
PopUpManager.centerPopUp( 
PopUpManager.createPopUp(DisplayObject(Application.application), 
MyWindow, false, PopUpManagerChildList.APPLICATION) );
}
]]
/mx:Script
/mx:Application
---
?xml version=1.0 encoding=utf-8?
!-- MyWindow.mxml --
local:MyTitleWindow
xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml 
xmlns:local=*
width=400 height=300 showCloseButton=true
close=PopUpManager.removePopUp(this)
mx:Label text=HERE IS THE WINDOW !!!/
mx:Script
![CDATA[
import mx.managers.PopUpManager;
]]
/mx:Script
/local:MyTitleWindow

?xml version=1.0 encoding=utf-8?
!-- MyTitleWindow.mxml --
mx:TitleWindow
xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml 
width=400 height=300
/mx:TitleWindow
---

i found a PowerPoint from Alex Harui but it don't compile. I made some 
adjust to compile the example but not work ok.
here is the link: 
blogs.adobe.com/aharui/360*Flex*2007/*Module*s.ppt/*Module*s.ppt

can someone give any help?

- Luís Eduardo.

 



Re: [flexcoders] popup a module

2007-05-21 Thread Luis Eduardo

Cool! i was able to find just the .ppt presentation before.
Now that you give the link to your blog i found the sample codes. Will 
try again with a better start.

thank you very much Alex!

btw, the presentation was amazing. Very clarificate about the under 
hood :)


Alex Harui escreveu:

 There’s an example on my blog blogs.adobe.com/aharui

 

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 *On Behalf Of *Luis Eduardo
 *Sent:* Monday, May 21, 2007 6:10 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] popup a module


 Hello, i am trying to do a mx:Module being Popuped but i am finding
 this very dificult.
 My classes are like this: MyWindow - MyTitleWindow - mx:TitleWindow
 The code works very fine if i run it all together (without
 modules). But when i split the swf i cannot popup MyWindow class.

 here is the sample that works, but without modules. This is the
 behaviour i seek. Is it possible with modules?

 ?xml version=1.0 encoding=utf-8?
 !-- MainApp.mxml --
 mx:Application
 xmlns:mx=http://www.adobe.com/2006/mxml 
 http://www.adobe.com/2006/mxml
 mx:Button label=show click=showTheWindow()/
 mx:Script
 ![CDATA[
 import mx.managers.PopUpManagerChildList;
 import mx.managers.PopUpManager;

 public function showTheWindow():void {
 PopUpManager.centerPopUp(
 PopUpManager.createPopUp(DisplayObject(Application.application),
 MyWindow, false, PopUpManagerChildList.APPLICATION) );
 }
 ]]
 /mx:Script
 /mx:Application
 ---
 ?xml version=1.0 encoding=utf-8?
 !-- MyWindow.mxml --
 local:MyTitleWindow
 xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml
 xmlns:local=*
 width=400 height=300 showCloseButton=true
 close=PopUpManager.removePopUp(this)
 mx:Label text=HERE IS THE WINDOW !!!/
 mx:Script
 ![CDATA[
 import mx.managers.PopUpManager;
 ]]
 /mx:Script
 /local:MyTitleWindow
 
 ?xml version=1.0 encoding=utf-8?
 !-- MyTitleWindow.mxml --
 mx:TitleWindow
 xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml
 width=400 height=300
 /mx:TitleWindow
 ---

 i found a PowerPoint from Alex Harui but it don't compile. I made some
 adjust to compile the example but not work ok.
 here is the link:
 blogs.adobe.com/aharui/360*Flex*2007/*Module*s.ppt/*Module*s.ppt

 can someone give any help?

 - Luís Eduardo.

  




--
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/
 


Re: [flexcoders] popup a module

2007-05-21 Thread Luis Eduardo

Alex, i tried your samples and they work almost perfect.  But yet i 
could not make the poped-up window move around the screen with the user 
interaction.
It seems that the new window just come and go but cant be dragged away.
I tried too the sample that have ShareCode and put the 2 managers 
(dragManager and popupManager) and yet didnt work.

Can you explain how to make the new poped-up window be free to move 
with user mouse interaction?

many thanks!

Luís Eduardo.


Luis Eduardo escreveu:

Cool! i was able to find just the .ppt presentation before.
Now that you give the link to your blog i found the sample codes. Will 
try again with a better start.

thank you very much Alex!

btw, the presentation was amazing. Very clarificate about the under 
hood :)


Alex Harui escreveu:

  

There’s an example on my blog blogs.adobe.com/aharui



*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
*On Behalf Of *Luis Eduardo
*Sent:* Monday, May 21, 2007 6:10 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] popup a module


Hello, i am trying to do a mx:Module being Popuped but i am finding
this very dificult.
My classes are like this: MyWindow - MyTitleWindow - mx:TitleWindow
The code works very fine if i run it all together (without
modules). But when i split the swf i cannot popup MyWindow class.

here is the sample that works, but without modules. This is the
behaviour i seek. Is it possible with modules?

?xml version=1.0 encoding=utf-8?
!-- MainApp.mxml --
mx:Application
xmlns:mx=http://www.adobe.com/2006/mxml 
http://www.adobe.com/2006/mxml
mx:Button label=show click=showTheWindow()/
mx:Script
![CDATA[
import mx.managers.PopUpManagerChildList;
import mx.managers.PopUpManager;

public function showTheWindow():void {
PopUpManager.centerPopUp(
PopUpManager.createPopUp(DisplayObject(Application.application),
MyWindow, false, PopUpManagerChildList.APPLICATION) );
}
]]
/mx:Script
/mx:Application
---
?xml version=1.0 encoding=utf-8?
!-- MyWindow.mxml --
local:MyTitleWindow
xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml
xmlns:local=*
width=400 height=300 showCloseButton=true
close=PopUpManager.removePopUp(this)
mx:Label text=HERE IS THE WINDOW !!!/
mx:Script
![CDATA[
import mx.managers.PopUpManager;
]]
/mx:Script
/local:MyTitleWindow

?xml version=1.0 encoding=utf-8?
!-- MyTitleWindow.mxml --
mx:TitleWindow
xmlns:mx=http://www.adobe.com/2006/mxml http://www.adobe.com/2006/mxml
width=400 height=300
/mx:TitleWindow
---

i found a PowerPoint from Alex Harui but it don't compile. I made some
adjust to compile the example but not work ok.
here is the link:
blogs.adobe.com/aharui/360*Flex*2007/*Module*s.ppt/*Module*s.ppt

can someone give any help?

- Luís Eduardo.

 






--
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




  




--
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/
 


Re: [flexcoders] Popup Menu Button. I want to click anywhere on the button

2007-05-07 Thread Manish Jethani
On 5/7/07, boy_trike [EMAIL PROTECTED] wrote:
 If I click on the arrow, I get the itemClick event and everything is fine 
 since I get a menuEvent
 and I can tell which item was selected.  My problem is that I want to let the 
 user click on the
 label in the button and still be able to tell which item they selected.  I am 
 having problems
 with this.  Any suggestions?

You get the itemClick event on the button click as well.


RE: [flexcoders] PopUp Returning NULL

2007-03-21 Thread Alex Harui
Are these things in modules?  If so, you might have the shared code
problem.  What's the full text of the error?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Kevin
Sent: Wednesday, March 21, 2007 10:06 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] PopUp Returning NULL

 

I am having some trouble with a popup window.  Here is the popup code:

 

private function changePassword() : void

{

 var pwWindow:IFlexDisplayObject = PopUpManager.createPopUp(this,
WinChangePassword, true);

}

 

if I call it from a Link Button I get a Can't Access Property of Null
Object...  error.

 

mx:LinkButton id=chpw label=change pw click=changePassword();/

 

However, when I call it from the ObserveValue Component I am using, it
works fine.

 

ac:ObserveValue id=pwchange source={model.changePw} value={1}
handler={changePassword} /

 

Also, when i check the debugger in both cases it shows pwWindow = null.
(I am not sure what it is supposed to be.)

 

Thanks for the suggestions.

 

- Kevin

 



Re: [flexcoders] PopUp Returning NULL

2007-03-21 Thread Kevin
I am not using modules and I also tried to comment out the  
ObserveValue tag to see that was causing a problem.  Here is the  
error message.  I am not sure how to read these things to help me!


Thanks, Kevin

TypeError: Error #1009: Cannot access a property or method of a null  
object reference.

at mx.managers::PopUpManagerImpl/::findPopupInfoByOwner()
at mx.managers::PopUpManagerImpl/removePopUp()
at mx.managers::PopUpManager$/removePopUp()
at com.onefoot.dbocl.view.admin::WinChangePassword/::closePopUp()
at Function/http://adobe.com/AS3/2006/builtin::call()
at com.adobe.ac::ObserveValue/com.adobe.ac:ObserveValue::callHandler()
at com.adobe.ac::ObserveValue/set handler()
at MethodInfo-1976()
at Function/http://adobe.com/AS3/2006/builtin::call()
at mx.binding::Binding/::innerExecute()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.binding::Binding/mx.binding:Binding::wrapFunctionCall()
at mx.binding::Binding/execute()
	at _com_onefoot_dbocl_view_admin_WinChangePasswordWatcherSetupUtil/ 
setup()

at com.onefoot.dbocl.view.admin::WinChangePassword/initialize()
	at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/ 
internal::childAdded()
	at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/ 
internal::rawChildren_addChildAt()

at mx.managers::SystemManager/addChild()
at mx.managers::PopUpManagerImpl/addPopUp()
at mx.managers::PopUpManagerImpl/createPopUp()
at mx.managers::PopUpManager$/createPopUp()
at dboclhome/::changePassword()
at dboclhome/__chpw_click()


On Mar 21, 2007, at 2:02 PM, Alex Harui wrote:



Are these things in modules?  If so, you might have the shared code  
problem.  What’s the full text of the error?




From: flexcoders@yahoogroups.com  
[mailto:[EMAIL PROTECTED] On Behalf Of Kevin

Sent: Wednesday, March 21, 2007 10:06 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] PopUp Returning NULL



I am having some trouble with a popup window.  Here is the popup code:



private function changePassword() : void

{

 var pwWindow:IFlexDisplayObject = PopUpManager.createPopUp 
(this, WinChangePassword, true);


}



if I call it from a Link Button I get a Can't Access Property of  
Null Object...  error.




mx:LinkButton id=chpw label=change pw click=changePassword();/



However, when I call it from the ObserveValue Component I am using,  
it works fine.




ac:ObserveValue id=pwchange source={model.changePw}  
value={1} handler={changePassword} /




Also, when i check the debugger in both cases it shows pwWindow =  
null. (I am not sure what it is supposed to be.)




Thanks for the suggestions.



- Kevin







RE: [flexcoders] PopUp Returning NULL

2007-03-21 Thread Agent RR-007
Sounds like a good plan.
See you manana mi amigo.

-Original Message-
From: Kevin [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: 3/21/07 2:33 PM
Subject: Re: [flexcoders] PopUp Returning NULL

I think I figured it out.  Because I am using the Cairngorm Model  
Locator pattern to control the popup state (thus the ObserveValue  
class) I need to be very strict about not trying to call popups  
directly.  In this case, when I called the popup via a direct  
function call, I was not updating the model and thus there was a NULL  
value on the model that would have otherwise been set.  When the  
popup opened from a direct call, it saw this NULL value and thew an  
error.  My mistakeI need to stick with my pattern for better or  
for worse  It is so tempting to take short cuts though!

Thanks for the help though.

- kevin


On Mar 21, 2007, at 2:14 PM, Kevin wrote:


 I am not using modules and I also tried to comment out the  
 ObserveValue tag to see that was causing a problem.  Here is the  
 error message.  I am not sure how to read these things to help me!

 Thanks, Kevin

 TypeError: Error #1009: Cannot access a property or method of a  
 null object reference.
   at mx.managers::PopUpManagerImpl/::findPopupInfoByOwner()
   at mx.managers::PopUpManagerImpl/removePopUp()
   at mx.managers::PopUpManager$/removePopUp()
   at com.onefoot.dbocl.view.admin::WinChangePassword/::closePopUp()
   at Function/http://adobe.com/AS3/2006/builtin::call()
   at com.adobe.ac::ObserveValue/ 
 com.adobe.ac:ObserveValue::callHandler()
   at com.adobe.ac::ObserveValue/set handler()
   at MethodInfo-1976()
   at Function/http://adobe.com/AS3/2006/builtin::call()
   at mx.binding::Binding/::innerExecute()
   at Function/http://adobe.com/AS3/2006/builtin::apply()
   at mx.binding::Binding/mx.binding:Binding::wrapFunctionCall()
   at mx.binding::Binding/execute()
   at _com_onefoot_dbocl_view_admin_WinChangePasswordWatcherSetupUtil/ 
 setup()
   at com.onefoot.dbocl.view.admin::WinChangePassword/initialize()
   at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/ 
 internal::childAdded()
   at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/ 
 internal::rawChildren_addChildAt()
   at mx.managers::SystemManager/addChild()
   at mx.managers::PopUpManagerImpl/addPopUp()
   at mx.managers::PopUpManagerImpl/createPopUp()
   at mx.managers::PopUpManager$/createPopUp()
   at dboclhome/::changePassword()
   at dboclhome/__chpw_click()


 On Mar 21, 2007, at 2:02 PM, Alex Harui wrote:


 Are these things in modules?  If so, you might have the shared  
 code problem.  What’s the full text of the error?



 From: flexcoders@yahoogroups.com  
 [mailto:[EMAIL PROTECTED] On Behalf Of Kevin
 Sent: Wednesday, March 21, 2007 10:06 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] PopUp Returning NULL



 I am having some trouble with a popup window.  Here is the popup  
 code:



 private function changePassword() : void

 {

  var pwWindow:IFlexDisplayObject = PopUpManager.createPopUp 
 (this, WinChangePassword, true);

 }



 if I call it from a Link Button I get a Can't Access Property of  
 Null Object...  error.



 mx:LinkButton id=chpw label=change pw click=changePassword 
 ();/



 However, when I call it from the ObserveValue Component I am  
 using, it works fine.



 ac:ObserveValue id=pwchange source={model.changePw}  
 value={1} handler={changePassword} /



 Also, when i check the debugger in both cases it shows pwWindow =  
 null. (I am not sure what it is supposed to be.)



 Thanks for the suggestions.



 - Kevin




 




Re: [flexcoders] popup menu icons duplicated

2007-03-11 Thread Paul Hastings
On 3/11/07, Doug McCune [EMAIL PROTECTED] wrote:

Yeah, I ran into this one. I'm going to bet that you're setting the 
 dataprovider of the
 popupmenubutton with Object objects (as opposed to XML or something else). 
 There's a bug
 in the component. Try setting the type property of the Object to an empty 
 string.

yup. that did the trick. how did you ever arrive at that workaround?

thanks.


Re: [flexcoders] popup menu icons duplicated

2007-03-10 Thread Doug McCune

Yeah, I ran into this one. I'm going to bet that you're setting the
dataprovider of the popupmenubutton with Object objects (as opposed to XML
or something else). There's a bug in the component. Try setting the type
property of the Object to an empty string.

So your code might look like this:

var obj:Object = new Object();
obj.type = ;
obj.label = measure angle;
obj.icon = angleIcon;

That part that says obj.type =  is the important part. Yeah, you shouldn't
have to do this, it's a problem with the MenuItemRenderer class. If you want
to dig in, take a look at the commitProperties of
mx.controls.menuClasses.MenuItemRenderer. I suppose this should get reported
as a bug, but it's saturday night for christ sake, time to go drinking.

Doug



On 3/10/07, Paul Hastings [EMAIL PROTECTED] wrote:


  i've got a popup button that loads a menu w/some icons  labels via
this function upon creation complete for that button:

private function initMeasurementMenu():void {
var measurementMenu:Menu = new Menu();
var dp:Object = [{label: measure angle, icon:measureAngleIcon},
{label: measure distance, icon:measureDistanceIcon}, {label:
measure area, icon:calcAreaIcon}, {label: erase measurement,
icon:eraseRedlineIcon}];
measurementMenu.dataProvider = dp;
measurementMenu.selectedIndex = 0;
measurementMenu.addEventListener(itemClick,
measurementItemClickHandler);
measurementPopUp.popUp = measurementMenu;
}

which works fine. my problem is that once a user clicks an item from
the menu  the menu is re-opened to use another item from the menu,
the previously selected icons are doubled  offset (screen capture
here: http://www.sustainablegis.com/projects/flex/popupmenu.htm).

any ideas?

thanks.
 



Re: [flexcoders] Popup

2006-10-06 Thread Clint Tredway



I just had to do the same thing with the transparency layer.. look at modalTransparency and modalTransparencyColor.. On 10/6/06, Valy Sivec 
[EMAIL PROTECTED] wrote:












  



Hello,I open a popup modal window and I'd like to remove the transparency layer underneath. Another question I have is: How can I display a menu bar item as selected in a MenuBar?Thanks,
Valy 
		Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. 
 Great rates starting at 1¢/min.
  













-- diabetic? http://www.diabetesforums.comAlbert Einstein - It's not that I'm so smart, it's just that I stay with problems longer.

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] PopUp Windows 50% Transparent???

2006-08-17 Thread Michael Schmalle



 I guess I really need to study up on Styles a bit more As far as base styles, check out the Flex Style Explorer. In about 10 minutes you will have a thorough understanding of the style implications on each of the base components.
Peace, MikeOn 8/17/06, Mike Anderson [EMAIL PROTECTED] wrote:













  



Thanks to both of you guys - 

I would have thought that Benoit's suggestion was the one I was looking for, but it was actually Brendan's code that did the trick.

It's weird, because I would have thought a hard-core property of borderAlpha sounded much more appropriate for what I was trying to fix - and not a Style.

I guess I really need to study up on Styles a bit more - because it's looking as if all the fine tuning  tweaking required to make RIA's really look good, will be the result of understanding  properly applying Styles.


Thanks again to all of you - I am always grateful for all your help.

Mike

-Original Message-
From: flexcoders@yahoogroups.com [mailto:
flexcoders@yahoogroups.com] On Behalf Of Benoit Hediard
Sent: Wednesday, August 16, 2006 4:13 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] PopUp Windows 50% Transparent???

Have you tried to set borderAlpha=1 (by default borderAlpha=0.4)?

Benoit Hediard 

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:
flexcoders@yahoogroups.com] De la part de Mike Anderson Envoyé : mercredi 16 août 2006 22:58 À : flexcoders@yahoogroups.com
 Objet : [flexcoders] PopUp Windows 50% Transparent???

Hello All,

Every time I create a popup, it's transparent around the entire border area.
I even tried using code, to force the Alpha value - and it still insists on showing the application residing one layer below.

Is this by design, and is there a way I can inhibit this behavior??

Thanks in advance for any help,

Mike

--
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

--
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


  













-- What goes up, does come down.

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  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] PopUp Windows 50% Transparent???

2006-08-16 Thread Brendan Meutzner



If you're using TitleWindow you can set styleName=opaquePanel on it.BrendanOn 8/16/06, Mike Anderson 
[EMAIL PROTECTED] wrote:












  



Hello All,

Every time I create a popup, it's transparent around the entire border
area.  I even tried using code, to force the Alpha value - and it still
insists on showing the application residing one layer below.

Is this by design, and is there a way I can inhibit this behavior??

Thanks in advance for any help,

Mike

  















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  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] PopUp Windows 50% Transparent???

2006-08-16 Thread Benoit Hediard
Have you tried to set borderAlpha=1 (by default borderAlpha=0.4)?

Benoit Hediard 

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Mike Anderson
Envoyé : mercredi 16 août 2006 22:58
À : flexcoders@yahoogroups.com
Objet : [flexcoders] PopUp Windows 50% Transparent???

Hello All,

Every time I create a popup, it's transparent around the entire border area.
I even tried using code, to force the Alpha value - and it still insists on
showing the application residing one layer below.

Is this by design, and is there a way I can inhibit this behavior??

Thanks in advance for any help,

Mike


--
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



 







--
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/
 




RE: [flexcoders] PopUp Windows 50% Transparent???

2006-08-16 Thread Mike Anderson
Thanks to both of you guys - 

I would have thought that Benoit's suggestion was the one I was looking for, 
but it was actually Brendan's code that did the trick.

It's weird, because I would have thought a hard-core property of borderAlpha 
sounded much more appropriate for what I was trying to fix - and not a Style.

I guess I really need to study up on Styles a bit more - because it's looking 
as if all the fine tuning  tweaking required to make RIA's really look good, 
will be the result of understanding  properly applying Styles.

Thanks again to all of you - I am always grateful for all your help.

Mike

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Benoit 
Hediard
Sent: Wednesday, August 16, 2006 4:13 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] PopUp Windows 50% Transparent???

Have you tried to set borderAlpha=1 (by default borderAlpha=0.4)?

Benoit Hediard 

-Message d'origine-
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la part de Mike 
Anderson Envoyé : mercredi 16 août 2006 22:58 À : flexcoders@yahoogroups.com 
Objet : [flexcoders] PopUp Windows 50% Transparent???

Hello All,

Every time I create a popup, it's transparent around the entire border area.
I even tried using code, to force the Alpha value - and it still insists on 
showing the application residing one layer below.

Is this by design, and is there a way I can inhibit this behavior??

Thanks in advance for any help,

Mike


--
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



 







--
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



 




--
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/
 




Re: [flexcoders] PopUp from within a class

2006-08-02 Thread Doug Arthur



I looked in the docs, and it's suppose to be: callLater(myFunction, args)

When I try this, I get Error - 1180: Call to a possibly undefined method callLater.

Thanks!
On 8/1/06, Tracy Spratt [EMAIL PROTECTED] wrote:








Use callLater() to start the loop. That will give the ui a chance to update before the heavy processing begins. If you have heavy processing going on, like in a loop, the UI will not redraw until the loop is done. To change this you need to break the loop up into smaller bits and use callLater() to get the ui to update.


Jesse helped me with this a year or so ago. I couldn't find his example any more. If you need more help I will try.


Tracy





From: [EMAIL PROTECTED]
ups.com [mailto:[EMAIL PROTECTED]
ups.com] On Behalf Of Doug ArthurSent: Tuesday, August 01, 2006 7:22 PMTo:
 [EMAIL PROTECTED]ups.com
Subject: Re: [flexcoders] PopUp from within a class







That's perfect, thanks.




One other issue I have is when popuping up the window before a large loop, the window doesn't actually render until the loop is done. Is there a reason for that or a workaround? I'm working on the same thing as in another thread about a 'Please Wait...' type of thing, but I want to put a progress bar and do setProgress(n, x); where n is the incrimented number in the loop and x is the total loop count. 




Thanks!

On 8/1/06, Martina Smith 
[EMAIL PROTECTED] wrote: 






Hi Doug,



Try using the code in the zip attached herewith..



I have given a complete example of how PopupManager will work.



Hope this solves your problem!




Regards,

Martina



Doug Arthur 
[EMAIL PROTECTED] wrote:




Yes, I've dealt with PopUp's plenty of times, but the problem is while I'm within a class object, it will not let me reference the document. I've tried using this, and it does not work. 
this.parent is null. The only thing I've found to work now is the following: 



var tw:TitleWindow = 
new TitleWindow();tw.title = 'Test Window...'
;var txt:Label = new Label();
txt.text = 'THIS IS A TEST';tw.addChild(txt);PopUpManager.addPopUp(tw, Application.application 
as DisplayObject, true);



I'm not sure if there is any other way though...?



Thanks!



On 7/31/06, Martina Smith 
[EMAIL PROTECTED]  wrote: 







Hi Doug,



You can make use of PopupManager Class to create a popup dynamically.



Regards,

Martina

Doug Arthur 
[EMAIL PROTECTED] wrote:





Does anyone know how to create a popup from within a class? I can't seem to reference anything of typeDisplayObject such as .parent and so on... I've even tried instantiating 
SystemManager.getSWFRoot(this), and other things with SystemManager... Nothing is working. 



Any ideas? Thanks!






Here's a new way to find what you're looking for - 
Yahoo! Answers 





Here's a new way to find what you're looking for - 
Yahoo! Answers 




 

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  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] PopUp from within a class

2006-08-02 Thread Doug Arthur



Yea, I'm going to need some help. I ended up using: 

Application.application.callLater(parseOrders, args); 

parseOrders is a new function where I basically broke out the loop into a seperate call to the above listed code. This still did not display my popup before the loop properly. Maybe i'm not doing it right?

for each(var vendorOrder:VendorOrder in vendorOrders){
 var args:Array = new Array();
 args.push(vendorOrder);
 Application.application.callLater(parseOrders, args);}

private function parseOrders(vendorOrder:VenorOrder):void {
 // do what was in my loop originally instead of callLater()...
}
On 8/2/06, Doug Arthur [EMAIL PROTECTED] wrote:


I looked in the docs, and it's suppose to be: callLater(myFunction, args)

When I try this, I get Error - 1180: Call to a possibly undefined method callLater.

Thanks!

On 8/1/06, Tracy Spratt [EMAIL PROTECTED]
 wrote: 










Use callLater() to start the loop. That will give the ui a chance to update before the heavy processing begins. If you have heavy processing going on, like in a loop, the UI will not redraw until the loop is done. To change this you need to break the loop up into smaller bits and use callLater() to get the ui to update. 


Jesse helped me with this a year or so ago. I couldn't find his example any more. If you need more help I will try. 


Tracy






From: [EMAIL PROTECTED]
 ups.com [mailto:
[EMAIL PROTECTED] ups.com] On Behalf Of Doug Arthur

Sent: Tuesday, August 01, 2006 7:22 PMTo: [EMAIL PROTECTED]
ups.com



Subject: Re: [flexcoders] PopUp from within a class







That's perfect, thanks.




One other issue I have is when popuping up the window before a large loop, the window doesn't actually render until the loop is done. Is there a reason for that or a workaround? I'm working on the same thing as in another thread about a 'Please Wait...' type of thing, but I want to put a progress bar and do setProgress(n, x); where n is the incrimented number in the loop and x is the total loop count. 




Thanks!

On 8/1/06, Martina Smith 
 [EMAIL PROTECTED] wrote: 






Hi Doug,



Try using the code in the zip attached herewith..



I have given a complete example of how PopupManager will work.



Hope this solves your problem!




Regards,

Martina



Doug Arthur 
 [EMAIL PROTECTED] wrote:




Yes, I've dealt with PopUp's plenty of times, but the problem is while I'm within a class object, it will not let me reference the document. I've tried using this, and it does not work. 
this.parent is null. The only thing I've found to work now is the following: 



var tw:TitleWindow = 
new TitleWindow();tw.title = 'Test Window...'
 ;var txt:Label = new Label();
txt.text = 'THIS IS A TEST';tw.addChild(txt);PopUpManager.addPopUp(tw, Application.application 
as DisplayObject, true);



I'm not sure if there is any other way though...?



Thanks!



On 7/31/06, Martina Smith 
 [EMAIL PROTECTED]  wrote: 







Hi Doug,



You can make use of PopupManager Class to create a popup dynamically.



Regards,

Martina

Doug Arthur 
 [EMAIL PROTECTED] wrote:





Does anyone know how to create a popup from within a class? I can't seem to reference anything of typeDisplayObject such as .parent and so on... I've even tried instantiating 
SystemManager.getSWFRoot(this), and other things with SystemManager... Nothing is working. 



Any ideas? Thanks!






Here's a new way to find what you're looking for - 
Yahoo! Answers 





Here's a new way to find what you're looking for - 
Yahoo! Answers 







 

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  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] PopUp from within a class

2006-08-01 Thread Doug Arthur



Yes, I've dealt with PopUp's plenty of times, but the problem is while I'm within a class object, it will not let me reference the document. I've tried using this, and it does not work. this.parent is null. The only thing I've found to work now is the following:


var tw:TitleWindow = new TitleWindow();tw.title = 
'Test Window...';var txt:Label = new Label();txt.text
 = 'THIS IS A TEST';tw.addChild(txt);PopUpManager.addPopUp(tw, Application.application as
 DisplayObject, true);

I'm not sure if there is any other way though...?

Thanks!

On 7/31/06, Martina Smith [EMAIL PROTECTED] wrote:







Hi Doug,

You can make use of PopupManager Class to create a popup dynamically.

Regards,
Martina
Doug Arthur [EMAIL PROTECTED] wrote:





Does anyone know how to create a popup from within a class? I can't seem to reference anything of typeDisplayObject such as .parent and so on... I've even tried instantiating SystemManager.getSWFRoot(this), and other things with SystemManager... Nothing is working. 


Any ideas? Thanks!




Here's a new way to find what you're looking for - Yahoo! Answers
 

 

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  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] PopUp from within a class

2006-08-01 Thread JesterXL





Don't create the class. The PopUpManager 
creates it for you.

var tw = PopUpManager.createPopUp ( 
Application.application as DisplayObject, TitleWindow, true);
var txt:Label = new Label();
txt.text = "This is a test.";
tw.addChild(txt);

- Original Message - 
From: Doug Arthur 

To: flexcoders@yahoogroups.com 
Sent: Tuesday, August 01, 2006 9:09 AM
Subject: Re: [flexcoders] PopUp from within a class

Yes, I've dealt with PopUp's plenty of times, but the problem is while I'm 
within a class object, it will not let me reference the document. I've tried 
using "this", and it does not work. this.parent is null. The only thing I've 
found to work now is the following: 

var tw:TitleWindow = 
new 
TitleWindow();tw.title = 'Test 
Window...';var txt:Label = new Label();txt.text = 'THIS IS A TEST';tw.addChild(txt);PopUpManager.addPopUp(tw, 
Application.application as DisplayObject, true);

I'm not sure if there is any other way though...?

Thanks!

On 7/31/06, Martina 
Smith [EMAIL PROTECTED] 
wrote: 

  
  
  
  
  
  
  Hi Doug,
  
  You can make use of PopupManager Class to create a popup 
  dynamically.
  
  Regards,
  Martina
  Doug Arthur [EMAIL PROTECTED] 
  wrote:
  
  
  
  


Does anyone know how to create a popup from within a class? I can't 
seem to reference anything of typeDisplayObject such as .parent and so 
on... I've even tried instantiating SystemManager.getSWFRoot(this), and 
other things with SystemManager... Nothing is working. 

Any ideas? Thanks!

  
  
  
  Here's a new way to find what you're looking for - Yahoo! Answers 
  
  
   
__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  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] PopUp from within a class

2006-08-01 Thread Doug Arthur



That's perfect, thanks.

One other issue I have is when popuping up the window before a large loop, the window doesn't actually render until the loop is done. Is there a reason for that or a workaround? I'm working on the same thing as in another thread about a 'Please Wait...' type of thing, but I want to put a progress bar and do setProgress(n, x); where n is the incrimented number in the loop and x is the total loop count.


Thanks!
On 8/1/06, Martina Smith [EMAIL PROTECTED] wrote:







Hi Doug,

Try using the code in the zip attached herewith..

I have given a complete example of how PopupManager will work.

Hope this solves your problem!


Regards,
Martina

Doug Arthur [EMAIL PROTECTED] wrote:



Yes, I've dealt with PopUp's plenty of times, but the problem is while I'm within a class object, it will not let me reference the document. I've tried using this, and it does not work. this.parent is null. The only thing I've found to work now is the following: 


var tw:TitleWindow = new TitleWindow();tw.title = 
'Test Window...';var txt:Label = new Label();txt.text
 = 'THIS IS A TEST';tw.addChild(txt);PopUpManager.addPopUp(tw, Application.application as
 DisplayObject, true);

I'm not sure if there is any other way though...?

Thanks!

On 7/31/06, Martina Smith [EMAIL PROTECTED]
 wrote: 







Hi Doug,

You can make use of PopupManager Class to create a popup dynamically.

Regards,
Martina
Doug Arthur [EMAIL PROTECTED] wrote:






Does anyone know how to create a popup from within a class? I can't seem to reference anything of typeDisplayObject such as .parent and so on... I've even tried instantiating SystemManager.getSWFRoot(this), and other things with SystemManager... Nothing is working. 


Any ideas? Thanks!




Here's a new way to find what you're looking for - Yahoo! Answers
 






Here's a new way to find what you're looking for - Yahoo! Answers
 


 

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  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] PopUp from within a class

2006-08-01 Thread Tracy Spratt












Use callLater() to start the loop. That will
give the ui a chance to update before the heavy processing begins. If you have
heavy processing going on, like in a loop, the UI will not redraw until the
loop is done. To change this you need to break the loop up into smaller bits
and use callLater() to get the ui to update.



Jesse helped me with this a year or so
ago. I couldnt find his example any more. If you need more help I will
try.



Tracy











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Doug Arthur
Sent: Tuesday, August 01, 2006
7:22 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] PopUp
from within a class













That's perfect, thanks.











One other issue I have is when popuping up the window before a large
loop, the window doesn't actually render until the loop is done. Is there a
reason for that or a workaround? I'm working on the same thing as in another
thread about a 'Please Wait...' type of thing, but I want to put a progress bar
and do setProgress(n, x); where n is the incrimented number in the loop
and x is the total loop count. 











Thanks!







On 8/1/06, Martina
Smith martina_smith_[EMAIL PROTECTED]co.in
wrote: 













Hi Doug,











Try using the code in the zip attached herewith..











I have given a complete example of how PopupManager
will work.











Hope this solves your problem!















Regards,





Martina













Doug Arthur [EMAIL PROTECTED]com
wrote:











Yes, I've dealt with PopUp's plenty of times, but the
problem is while I'm within a class object, it will not let me reference the
document. I've tried using this, and it does not work. this.parent
is null. The only thing I've found to work now is the following: 











var
tw:TitleWindow = new TitleWindow();
tw.title = 'Test Window...';
var
txt:Label = new Label();
txt.text = 'THIS IS A TEST';
tw.addChild(txt);
PopUpManager.addPopUp(tw, Application.application as
DisplayObject, true);












I'm not sure if there is any other way though...?











Thanks!












On 7/31/06, Martina Smith martina_smith_[EMAIL PROTECTED]co.in
 wrote: 















Hi Doug,











You can make use of PopupManager Class to create a
popup dynamically.











Regards,





Martina







Doug Arthur [EMAIL PROTECTED]com
wrote:















Does anyone know how to create a popup from within a
class? I can't seem to reference anything of typeDisplayObject such as
.parent and so on... I've even tried instantiating SystemManager.getSWFRoot(this),
and other things with SystemManager... Nothing is working. 











Any ideas? Thanks!























Here's a new way to find what you're looking for - Yahoo! Answers 



































Here's a new way to find
what you're looking for - Yahoo! Answers 























__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  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] PopUp from within a class

2006-07-31 Thread JesterXL





import mx.managers.PopUpManager;

PopUpManager.createPopUp(this, MyWindow, 
false);

???

- Original Message - 
From: Doug Arthur 

To: flexcoders@yahoogroups.com 
Sent: Monday, July 31, 2006 11:21 PM
Subject: [flexcoders] PopUp from within a class

Does anyone know how to create a popup from within a class? I can't seem to 
reference anything of typeDisplayObject such as .parent and so on... I've 
even tried instantiating SystemManager.getSWFRoot(this), and other things with 
SystemManager... Nothing is working. 

Any ideas? Thanks! 
__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  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] PopUp from within a class

2006-07-31 Thread Martina Smith



Hi Doug,You can make use of PopupManager Class to create a popup dynamically.Regards,  MartinaDoug Arthur [EMAIL PROTECTED] wrote:Does anyone know how to create a popup from within a class? I can't seem to reference anything of typeDisplayObject such as .parent and so on... I've even tried instantiating SystemManager.getSWFRoot(this), and other things with SystemManager... Nothing is working.  
   Any ideas? Thanks!   
	

	
		 
Here’s a new way to find what you're looking for - Yahoo! Answers 
__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  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] Popup parameters un flex 2

2006-06-13 Thread Michael Schmalle



Hi,

Why are you typing the return as Object?

Object does not have id nor serviceName ;-)

Can you do;


var ref:PopUpForms = PopUpForms(PopUpManager.createPopUp(this, PopUpForms,true));

ref.id = id;

ref.serviceName = action;

Peace, Mike
On 6/13/06, jpwarmer [EMAIL PROTECTED] wrote:









  



How can i pass parameters to a popup in flex 2??

This does not work...

var ref:Object = PopUpForms(PopUpManager.createPopUp(this, PopUpForms,
true));
ref.id = id;
ref.serviceName = action;


  













-- What goes up, does come down.

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  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] Popup parameters un flex 2

2006-06-13 Thread Michael Schmalle



Oh another way;

var ref:PopUpForm = new PopUpForm()
ref.id = id
ref.serviceName = serviceName;

PopUpManager.addPopUp(ref, this, true);

Peace, Mike
On 6/13/06, Michael Schmalle [EMAIL PROTECTED] wrote:
Hi,

Why are you typing the return as Object?

Object does not have id nor serviceName ;-)

Can you do;


var ref:PopUpForms = PopUpForms(PopUpManager.createPopUp(this, PopUpForms,true));

ref.id = id;

ref.serviceName = action;

Peace, Mike
On 6/13/06, jpwarmer [EMAIL PROTECTED]
 wrote:









  



How can i pass parameters to a popup in flex 2??

This does not work...

var ref:Object = PopUpForms(PopUpManager.createPopUp(this, PopUpForms,
true));
ref.id = id;
ref.serviceName = action;


  













-- What goes up, does come down.

-- What goes up, does come down.

__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  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] Popup help

2006-01-05 Thread Matt Chotin
If a1BindEvent is a class you're either missing an import statement to
bring it in or that class has an incorrect package statement (or is
located in the wrong folder).

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jeremy Rottman
Sent: Thursday, January 05, 2006 12:23 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Popup help

I have a pop up that I am using for a user lookup. When they search
for a user it is display in a data grid. And when they click on the
name it is suposed to bind over to the text input on the main stage.
However, I think something went arey and I cant get it to compile. So
can someone give me a bit of help. The error I get is this.

Type annotation is not a compile-time constant: a1BindEvent
adminAddList.as 

Pop up window:

?xml version=1.0 encoding=utf-8?
mx:Panel xmlns:mx=http://www.macromedia.com/2005/mxml;
resizeEffect=Resize xmlns=* width=25% height=25% title=Agent
Lookup
mx:WebService id=srv useProxy=false
wsdl=http://*/cfc/adminHS2F.cfc?wsdl; showBusyCursor=true /
mx:Script source=as/adminAddList.as /

mx:Script

private function a1Bind():Void
{
dispatchEvent(new a1BindEvent(a1DG.FLD_USERLOGIN));
mx.managers.PopUpManager.removePopUp(this);
}

/mx:Script

mx:Metadata
[Event(a1Bind)]
/mx:Metadata
mx:states
mx:State name=results
mx:PropertyOverride property=width value=45%/
mx:PropertyOverride property=height value=45%/
mx:AddChild target={canvas1} position=lastChild
mx:DataGrid id=a1DG click=
dataProvider={srv.qpAgentDisplay.result}
mx:layoutConstraints
mx:EdgeAnchor top=55 left=6 bottom=6
right=49/
/mx:layoutConstraints
mx:columns
mx:DataGridColumn headerText=Agent ID
columnName=FLD_USERLOGIN/
mx:DataGridColumn headerText=First Name
columnName=FLD_FIRSTNAME/
mx:DataGridColumn headerText=Last Name
columnName=FLD_LASTNAME/
/mx:columns
/mx:DataGrid
/mx:AddChild
/mx:State
/mx:states
mx:Canvas width=100% height=100% id=canvas1
mx:Label text=Agent Name: x=7 y=1/
mx:TextInput x=7 y=22 id=search/
mx:Button x=174 y=22
click=currentState='results';qpAgentDisplay(search.text)
label=Search/
/mx:Canvas

/mx:Panel


AS CODE:

// Agent Lookup 1

import mx.managers.PopUpManager;

private function showWindow1(modal:Boolean):Void
{
var agent1Window:Agent1Window = new Agent1Window();
 agent1Window.addEventListener(a1Bind, a1BindHandler);
 var popup:Object = PopUpManager.popUpWindow(agent1Window,
this, modal);
PopUpManager.centerPopUp(popup);
}
// Agent Lookup 1 Binding   
public function a1BindHandler(event:a1BindEvent):Void
{
fld_agentId.text=a1BindEvent.a1DG.FLD_USERLOGIN
}







--
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



 




--
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/
 




Re: [flexcoders] Popup Issue

2005-10-27 Thread David Harris



>From what I see...

you code:

function testTable(){var cReports:TitleWindow = TitleWindow(popupWindow
(MyTest,false));}

The third argument is a flag to indicate if the PopUp is Modal or not.
You have false in there, so if you change that to true, it will be Modal

EG:

function testTable(){var cReports:TitleWindow = TitleWindow(popupWindow
(MyTest,true));}

HTH
On 10/28/05, digital_eyezed [EMAIL PROTECTED] wrote:




I have a popup which works ok:

function testTable(){var cReports:TitleWindow = TitleWindow(popupWindow
(MyTest,false));}

The problem is: It's meant to be Modal but it's not, and when I close 
it (it has a handled close button in the TitleWindow) the underlying 
main application is frozen. 


Any Help would be most appreciated.

Iain












--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt

Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com









  
  
SPONSORED LINKS
  
  
  


Web site design development
  
  

Computer software development
  
  

Software design and development
  
  



Macromedia flex
  
  

Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group flexcoders on the web.
  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




  
















--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  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] PopUp Manager not working ---WTF?

2005-09-26 Thread Tracy Spratt










Duplicate them exactly and make sure they both
work. Then modify one of them one property at a time to see what is causing
the difference.

Tracy











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Kelly
Sent: Sunday, September 25, 2005
1:46 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] PopUp
Manager not working ---WTF?





I am trying to create a popup window in my application.



Its not working.



I have two buttons that both create a PopUp. The Buttons are
right next to each other.



One works and the other one doesnt.



Each button calls a function.



The functions are right next to each other on the same AS
page.





Here is the code:





!In application page 

mx:Button id=newMessageButton
label=New Message click=NewMessage() /

mx:Button id=PrintButton
icon=@Embed('printer.png') click=PrintMessage() /







!In Actionscript for application 



function NewMessage() {


var popup = mx.managers.PopUpManager.createPopUp(this, NewMessage, true,
{deferred: true});


//popup.centerPopUp();

}



function PrintMessage() {





var popup = mx.managers.PopUpManager.createPopUp(this, PrintPreview, true, {deferred:
true, TheMessage:messageDetails.text, TheSender:messageFrom.text,
TheDate:mDateSent.text});


popup.centerPopUp();

}





The print button works and creates a popup window as
expected.



The newMessage button does nothing the first time it is
clicked and the second time it is clicked the page goes blank.





WTF?











Kelly Roman



[EMAIL PROTECTED]



Dekayd Media Inc. --

Rich Internet Application Development

w/ Macromedia Flex













--
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



  Visit your group "flexcoders" on the web.
  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] Popup component

2005-08-26 Thread Manish Jethani
On 8/26/05, Alberto Albericio Salvador [EMAIL PROTECTED] wrote:

 The question is: how can I modify the container or the helper class so
 that Index.mxml know it has to show this component in a popup window?
 
 My lame solution to this has been replacing this:
 
 view:Login id=login /
 
 with this:
 
 mx:Canvas id=login creationComplete=var popup =
 mx.managers.PopUpManager.createPopUp(_root, Login, true, {deferred:
 true, width:200, height:190, x:500, y:200});
 
 /mx:Canvas
 
 and thus loosing the cairngorm structure because Login.mxml must reside
 in the same directory than Index.mxml (using view:Login instead of
 Login does not launch any error but the whole app screen gets white )

I'm sorry I'm not familiar with Cairngorm, but it looks like you just
want to qualify Login with the package name.  i.e. foo.bar.Login
instead of Login.

Manish


 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/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/

* 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] popup in subdirectory ?

2005-06-10 Thread Mike Anderson
Hi Jamie!

(long time no talk, it's me Mike - the ex-Firefly user, off Flashcoders)

In your main application tags, I think you need to add another namespace
entry - like xmlns:mx=http://www.macromedia.com/2003/mxml; - you need
another one, to reference the popup directory xmlns:xx=popup.*

Where xx is the prefix YOU choose to use, versus mx that Macromedia
references, to access all their built-in classes, etc.

I am sure I will be corrected on this - but I am confident this is the
overall path you must take, in order to reference files, that don't
reside in the native directory.

Mike

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jamiebadman
Sent: Friday, June 10, 2005 11:03 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] popup in subdirectory ?

Hi,

I think this is probably a very basic question - but I'm really having
trouble figuring this out - wonder if someone here can explain...

Basically I've just restructured my project; it started off as a 'demo'
and now it's outgrowing that and I needed to structure it a little
better so...

I now have it broken down in to a logical directory structure...

And it all works except the popups!

In this specific case, the popup screen is in a directory called...
'popups' under the directory in which the current .mxml resides.

The AS script *was*:

var popupScreen:TitleWindow =
  TitleWindow( PopUpManager.createPopUp( this,
 ManageCreditItems,
 true,
 {title: 'Credit Note Items',
closeButton: false, parentComponent: this.itemData},
 false) );


The 'ManageCreditItems.mxml' *used* to be at the same directory level as
this calling code - and it all worked fine.

Now it's in './popup/ManageCreditItems.mxml' and it won't work anymore!

How do I qualify the reference to the popup in order for it to work ?

Thanks,

Jamie.





 
Yahoo! Groups Links



 




 
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] popup in subdirectory ?

2005-06-10 Thread Manish Jethani
On 6/10/05, jamiebadman [EMAIL PROTECTED] wrote:

 The 'ManageCreditItems.mxml' *used* to be at the same directory
 level as this calling code - and it all worked fine.
 
 Now it's in './popup/ManageCreditItems.mxml' and it won't work
 anymore!

Add this line at the top of your script.

 import popup.ManageCreditItems;

You could also fully qualify the name when passing it to the
PopUpManager as 'popup.ManageCreditItems'.  Hope that helps.


 
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] popup in subdirectory ?

2005-06-10 Thread Tarik Ahmed







This is a name space problem. In your mx:Application if you do
a xmlns="popups.*" that should do it I think.

http://livedocs.macromedia.com/flex/1/flex_builder_en/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Using_Flex_Builderfile=brady405.htm

Though if you do a xmlns:popups="popups.*"

can you do this:

PopUpManager.createPopUp(this,popups:ManageCreditItems,true,)

? Or popups.ManageCreditItems?

jamiebadman wrote:

  Hi,

I think this is probably a very basic question - but I'm really 
having trouble figuring this out - wonder if someone here can 
explain...

Basically I've just restructured my project; it started off as 
a 'demo' and now it's outgrowing that and I needed to structure it a 
little better so...

I now have it broken down in to a logical directory structure...

And it all works except the popups!

In this specific case, the popup screen is in a directory 
called... 'popups' under the directory in which the current .mxml 
resides.

The AS script *was*:

var popupScreen:TitleWindow = 
  TitleWindow( PopUpManager.createPopUp( this,
 ManageCreditItems,
 true,
 {title: 'Credit Note 
Items', closeButton: false, parentComponent: this.itemData},
 false) );


The 'ManageCreditItems.mxml' *used* to be at the same directory 
level as this calling code - and it all worked fine.

Now it's in './popup/ManageCreditItems.mxml' and it won't work 
anymore!

How do I qualify the reference to the popup in order for it to work ?

Thanks,

Jamie.





 
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/
 



  










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] popup in subdirectory ?

2005-06-10 Thread Mike Anderson
Oh yes *import* works great too - as us Flash users, are probably more
accustomed to doing it this way.

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Manish Jethani
Sent: Friday, June 10, 2005 1:17 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] popup in subdirectory ?

On 6/10/05, jamiebadman [EMAIL PROTECTED] wrote:

 The 'ManageCreditItems.mxml' *used* to be at the same directory level 
 as this calling code - and it all worked fine.
 
 Now it's in './popup/ManageCreditItems.mxml' and it won't work 
 anymore!

Add this line at the top of your script.

 import popup.ManageCreditItems;

You could also fully qualify the name when passing it to the
PopUpManager as 'popup.ManageCreditItems'.  Hope that helps.


 
Yahoo! Groups Links



 





 
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] Popup windows behaving oddly

2005-06-10 Thread JesterXL
Avoid loading SWF's; that's the only time I've had weird things happen. 
You're not doing that are you?

- Original Message - 
From: Eric Raymond [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, June 10, 2005 8:53 PM
Subject: [flexcoders] Popup windows behaving oddly


We've been having a number of problems with popup windows doing
strange things.

1) They popup behind the window which created them.

2) They pop up in the upper left even though we asked them to be
centered over their parent via centerPopup().


Are there a know sets of tricks to make popups behave well.  Are there
things to avoid?





Yahoo! Groups Links








 
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] Popup only works once

2005-04-07 Thread Tracy Spratt

Just for fun, try the magic doLater().
doLater(this, deletePopUp)
Tracy

-Original Message-
From: cazzaran [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 07, 2005 6:00 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Popup only works once



I have an Add Group button in my MXML that calls a method:

public function showAddGroupWindow():Void {
  var popup =
PopUpManager.createPopUp(MovieClip(mx.core.Application.application),
addGroupWindow, true);
  popup.centerPopUp();
}   

In my popup MXML, which is just a simple title window, I have a save
and a cancel button. My cancel button calls the method:

function cancelButtonPressed() {
  this.deletePopUp();
}

The save button is having the same problem...

If I click either button, the popup closes, but the Add Group button
wont open another popup. I've verified that it's still calling the
showAddGroupWindow() method, but for some reason, nothing pops up
anymore. I have a feeling the deletePopUp() isn't fully getting rid of
it... where am I going wrong?





 
Yahoo! Groups Links



 







 
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] popup window with custom component ( not extending TitleWindow )

2005-02-22 Thread Erik Westra
 
WineDetail.mxml There is no property with the name 'PopUpDetail'

The class PopUpDetail, is it in the same folder as WineDetail?
Is the class PopUpDetail in the same folder as the .mxml file with the
application tag in it?

If not, add this line to your script (at the TOP):

import path.to.file.PopUpDetail;


Greetz Erik



-Original Message-
From: Owen van Dijk [mailto:[EMAIL PROTECTED] 
Sent: dinsdag 22 februari 2005 17:42
To: flexcoders@yahoogroups.com
Subject: [flexcoders] popup window with custom component ( not extending
TitleWindow )


I've been working on a Flex application that requires a modal
popupwindow. I have created a PopUpDetail.mxml that uses a Canvas. I
then have another custom MXML component that is also based on a Canvas.
The component is called WineDetail.mxml.

In WineDetail.mxml is a Script block that uses the following AS (
straight from the Flex book ):

--
function openWineDetail()
{
var parentToPopUpOver = this;
var isModal:Boolean = true;
var initObj = {};
var popUp = mx.managers.PopUpManager.createPopUp(
parentToPopUpOver, PopUpDetail, isModal, initObj ); }
--

WineDetail is then put into a Repeater object , something like this:

mx:Repeater id=rp
dataProvider={jumboWS.GetWineTop10.result.diffgram.NewDataSet.Table}
WineDetail wineID={rp.currentItem.ID}
winenumber={rp.currentIndex} winedetaillabel={rp.currentItem.NAME}
wineimage={host}Images/wine/wine_{rp.currentItem.ID}_1.jpg xmlns=*
/
/mx:Repeater

note the xmlns attribute. When i click on a WineDetail component, it's
supposed to create a PopUpWindow, but i never got it to work.I'm getting
the following error, among others:

WineDetail.mxml There is no property with the name 'PopUpDetail'

It might be something obvious i'm missing here, but i'm working against
a killer deadline, and this close to find another hack around it...if
somebody has a clue, you may enlighten me :) ( I figured that it's
something as simple as using a Titlewindow instead of a Canvas? )

Thnx

--
Owen van Dijk


 
Yahoo! Groups Links



 







RE: [flexcoders] popup

2005-02-14 Thread Matt Horn



Miguel, you use the PopUpManager to create TitleWindow 
containers. This is documented in theUsing Layout Containers 
chapterof the Developing Flex Applications book.

hth,

matt h



From: Miguel D�az Valenzuela 
[mailto:[EMAIL PROTECTED] Sent: Monday, February 14, 2005 3:04 
PMTo: flexcoders@yahoogroups.comSubject: [flexcoders] 
popup
hi flexcodersHow can i do a Popup in Flex?. 
nothing more to say, thanks in advance