Check the docs:
http://livedocs.adobe.com/flex/2/docs/00000701.html

And check the TitleWindow/Container docs for the "data" property.
http://livedocs.adobe.com/flex/201/langref/mx/containers/TitleWindow.html#propertySummary
http://livedocs.adobe.com/flex/201/langref/mx/core/Container.html#data



----- Original Message ----- 
From: "sdl1326" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Sunday, December 16, 2007 9:36 PM
Subject: [flexcoders] Re: Basic Question from a Flex Newbie


Thanks for the help. That's exactly what I want to do, but I can't
seem to figure out how to pass the value to the popup window for the
main text. I got the title as myPopUp.title="This is the title bar
text", but no luck with the main text.

Again, thanks.

--- In [email protected], "Seth Caldwell" <[EMAIL PROTECTED]> wrote:
>
> I'm confused by exactly what you want to do. You have a reference to the
> SimpleDialog/TitleWindow class you just created (myPopUp).
> 
> After you center it, why not just set some value on it?
myPopUp.somestring =
> "hello";
> 
>  
> 
>  
> 
>   _____  
> 
> From: [email protected] [mailto:[EMAIL PROTECTED] On
> Behalf Of [EMAIL PROTECTED]
> Sent: Saturday, December 15, 2007 3:46 PM
> To: [email protected]
> Subject: [flexcoders] Basic Question from a Flex Newbie
> 
>  
> 
> Hello All ----
> 
> I have been using Flash and AS3 for some time now, however I am new
to Flex
> (and this group) and looking forward to seeing all that it can do. 
I have
> come across a situation which I believe to be rather simple to
resolve, yet
> I have been unable to do so. I have my Application file which is
calling a
> PopUp Component created with a TitleWindow Component. I have a
button in the
> Application file that when it's clicked will open the
PopUpComponent. How
> can I pass a variable/parameter from the Application to the
TitleWindow for
> the text . Here's the code I am using in Application:
> 
> ------------------------------------------------------
> <?xml version="1.0" encoding="utf-8"?>
> 
> <mx:Script>
>     <![CDATA[
>         
>         import dialogue.SimpleDialogue;
>         import mx.managers.PopUpManager
>         import mx.containers.TitleWindow;
>         
>         private var myPopUp:TitleWindow
>         
>         private function showPopUp():void
> 
>             myPopUp =
> PopUpManager.createPopUp(this,dialogue.SimpleDialogue,true) as
TitleWindow;
>             PopUpManager.centerPopUp(myPopUp)
>         }
>     ]]>
> </mx:Script>
>     
> <mx:Button label="Show Popup Dialogue" click="showPopUp()"></mx:Button>
> </mx:Application>
>
--------------------------------------------------------------------------
> 
> And here's the code in the Component:
> ---------------------------------------------
> //SimpleDialogue Component
> 
> <?xml version="1.0" encoding="utf-8"?>
> 
> <mx:Label id="message" text="" fontSize="24">
>     
> </mx:Label>
>     
> </mx:TitleWindow>
> -----------------------------------------------------------
> 
> Hopefully, this makes sense. If not, I would be happy to clarify.
Thanks for
> any and all replies.
> 
> SL
>





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

Reply via email to