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