Apparently, this is a known bug:
http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=584&;
threadid=1072386

Benoit Hediard

-----Message d'origine-----
De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la
part de Greg Johnson
Envoyé : vendredi 4 novembre 2005 14:34
À : flexcoders@yahoogroups.com
Objet : [flexcoders] Re: Flex 2:Can you center a popup from the inside?

Nope
--- In flexcoders@yahoogroups.com, "JesterXL" <[EMAIL PROTECTED]> wrote:
>
> Is the err function being called from a class that extends 
> UIObject/UIComponent/View?
> 
> ----- Original Message -----
> From: "Greg Johnson" <[EMAIL PROTECTED]>
> To: <flexcoders@yahoogroups.com>
> Sent: Thursday, November 03, 2005 3:44 PM
> Subject: [flexcoders] Flex 2:Can you center a popup from the inside?
> 
> 
> Here is the popup function
> 
> // Error Handler Function
> public function err(message:String):Void { var errpop:stdErr = 
> stdErr(PopUpManager.createPopUp (this, stdErr, true)); 
> errpop.message.text = message; }
> 
> And here is the stdErr.mxml file it uses for the actual popup.
> 
> <?xml version="1.0" encoding="utf-8"?> <mx:TitleWindow 
> xmlns:mx="http://www.macromedia.com/2005/mxml";
> width="240" height="341" closeButton="true"
> borderStyle="outset" cornerRadius="10" title="Notice"
> fontWeight="bold">
> <mx:Canvas width="100%" height="100%"> <mx:Text id="message" 
> selectable="true"> <mx:layoutConstraints> <mx:EdgeAnchor left="5" 
> right="5"
> bottom="5" top="25"/>
> </mx:layoutConstraints>
> </mx:Text>
> </mx:Canvas>
> <mx:Script>
> <![CDATA[
> import mx.managers.PopUpManager;
> ]]>
> </mx:Script>
> <mx:ControlBar width="100%" horizontalAlign="center"
> marginBottom="5" marginLeft="5" marginRight="5" marginTop="5"> 
> <mx:Button label="Close"
> click="PopUpManager.removePopUp(this)" width="100%"/> </mx:ControlBar> 
> </mx:TitleWindow>
> 
> I have tried a few variations to get centerPopUp to work, but they all 
> either give an error when I try to compile or just don't center it.
> 
> 
> 
> 
> 
> 
> 
> --
> 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
>







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



 









------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/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/
 


Reply via email to