BTW Thanks to Spike, he gave me the little bits I needed to finally see
what I needed to "get it" with the changes in 2.
Now I have tried many variations of a popup window to send stuff too.
It works for the most part. But when I close the window I get an error.
Here is the function that fires the popup window up.
-------
import mx.managers.PopUpManager;
import mx.containers.TitleWindow;
// Error Handler Function
public function err(message:String, title:String):Void {
var errpop:TitleWindow = TitleWindow
(PopUpManager.createPopUp(this, MyPopup, true));
errpop.title="Test";
errpop.closeButton=true;
}
--------
And here is the MyPopup.mxml
--------
<?xml version="1.0" encoding="utf-8"?>
<mx:TitleWindow xmlns:mx="http://www.macromedia.com/2005/mxml"
click="PopUpManager.removePopUp(this)" width="940" height="503">
<mx:Script>
<![CDATA[
import mx.managers.PopUpManager;
]]>
</mx:Script>
<mx:TextArea id="messagebox" width="100%" height="100%"
editable="false" />
</mx:TitleWindow>
-------
And here is the error that gets thrown
-------
TypeError: Error #1009: null has no properties.
at mx.managers::PopUpManager$/removePopUp()
at MyPopup/___TitleWindow0_click()
--------
------------------------ 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/