try this:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml">
<mx:Button click="toggleVis()" label="click me"/>
<mx:TitleWindow id="tw" title="Some title">
<mx:Label text="hi there"/>
</mx:TitleWindow>
<mx:Script>
<![CDATA[
function toggleVis(){
tw.visible = !tw.visible;
}
]]>
</mx:Script>
</mx:Application>
At 02:21 PM 5/12/2005, you wrote:
>I can't find an example or description of how to use the TitleWindow
>component without it being in an external file. Any pointers?
>
>
>
>/******************************************
>* Jeff Beeman
>******************************************/
>
>----------
>From: [email protected] [mailto:[EMAIL PROTECTED] On
>Behalf Of Tracy Spratt
>Sent: Thursday, May 12, 2005 10:45 AM
>To: [email protected]
>Subject: RE: [flexcoders] Internal popups
>
>You probably want the TitleWindow component.
>
>Tracy
>
>
>----------
>From: [email protected] [mailto:[EMAIL PROTECTED] On
>Behalf Of Jeff Beeman
>Sent: Thursday, May 12, 2005 12:56 PM
>To: [email protected]
>Subject: [flexcoders] Internal popups
>
>I've been scouring the documentation, but I can't seem to find how to do
>something that should be quite simple. How do I create a popup window
>that doesn't reference an external file? All examples point to loading in
>an external mxml file, but I would like to simply create a panel that is
>hidden on startup and have it hide / unhide on different events. Is this
>possible?
>
>
>
>/*******************************************
>* Jeff Beeman
>* Digital Media & Instructional Technologies
>* Arizona State University
>*******************************************/
>
>
>
>
>----------
>Yahoo! Groups Links
> * To visit your group on the web, go to:
> *
> <http://groups.yahoo.com/group/flexcoders/>http://groups.yahoo.com/group/flexcoders/
>
>
> *
> * To unsubscribe from this group, send an email to:
> *
> <mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED]
>
> *
> * Your use of Yahoo! Groups is subject to the
> <http://docs.yahoo.com/info/terms/>Yahoo! Terms of Service.
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/