I responded to your previous post with a full example that does what you
want, plus two suggestions on how to debug your own code.

 

You said that you didn't "get it".  Exactly what did you not understand?
The example? "trace"? "hard-code"?

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Gustavo Duenas
Sent: Thursday, September 20, 2007 11:12 AM
To: [email protected]
Subject: [flexcoders] help binding info to a title window

 

Hi Coders, I have a panel with a tile list bonded to a <mx:model, which
is an external xml ,

so far everything is ok . But I need help because I dont know how could
I bind the <title></title> in my xml into the title of the the TiTle
Window component.

 

thi is the code of my main app.

 

//this code is for triggering the Title window created by a
popupmanager.

 

private function openWindow(event:MouseEvent):void{

                                    var myWindow1:TitleWindow =
TitleWindow(PopUpManager.createPopUp(this, myTitleWindow, false));

                                    myWindow1.height=450;

                                    myWindow1.width=650;

                        var myTitle:String = new
String(portafolio.sample);//this is supposed to be the id of the model
and the main app. 

                        myWindow1.title= myTitle;

                                    trace(myTitle);//only returns in the
title [object, object], [object, object], [object, object]

 

this is the code of my model:

 

<mx:Model id="portafolio" source="xml/portfolio.xml" />

 

//myXml is this:

 

 

<portFolio>

 

<sample>

<client>Airborne Data</client> 

<description>Airborne Data is a company who takes aerial photography. We
design their whole corporate Image</description>

 <image>images/airborneLogo.png</image>

 </sample>

 

<sample>

<client>Avanti Condos</client>

<description>Avanti is condo and town Homes project located at Kernan.
They ask us for one press release and two ads in spanish</description>

<image>images/avantiLogo.png</image>

</sample>

 

<sample> 

<client>Beaver Street Enterprise Center</client>

<description>The BSEC is a business incubator, we made for them a whole
new image(in spanish too) and a banner campaign</description>

<image>images/beaverLogo.png</image>

</sample>

 

<sample>

<client>Cofina Cocoa</client>

 <description>Cofina is the main cocoa bean exporter from Ecuador, South
America. We designed for them a multimedia and a thri-fold
brochure</description>

 <image>images/cofinaLogo.png</image>

 </sample>

 

<sample> 

<client>Iglesia Fuente de Luz y Salvaci-n</client>

<description>This a Hispanic Baptist church located in Orange Park, Fl.
We made a new logo, corporate image and web design</description>

<image>images/iglesiaLogo.png</image>

</sample>

 

<sample>

 <client>John Malcolm new book</client>

 <description>This is the cover and back cover design for a polemic new
book by John Malcolm</description>

 <image>images/JohnLogo.png</image>

 </sample>

 

<sample>

 <client>I-Tech Personnel Services</client>

 <description>I-Tech think this is a year of renovation, so do we. We
redesign their logo</description>

 <image>images/itechLogo.png</image>

 </sample>

 

<sample>

 <client>Just Kids</client>

 <description>Just Kids is a learning center who are looking for
position their image in a new way. We made for them a tri-fold
brochure</description>

<image>images/jusKidsLogo.png</image>

</sample>

 

<sample>

<client>Mafle Photography</client>

<description>Mafle Photography is a newly created professional photo
studio in Jacksonville. We made for them: logo design, website,
postcards and email campaign</description> 

<image>images/mafleLogo.png</image>

</sample>

 

<sample>

<client>LT PaintWorks</client>

<description>Hispanic company who do paintworks, framing, and drywall
amonth others. We design their whole corporate image, logo and
mailouts</description>

<image>images/ltLogo.png</image>

</sample>

 

<sample>

 <client>Natural Coast Signature's Builders</client> 

 <description>Contracting company located in Middleburg, Fl. We made for
them Logo, corporate image among others</description>

<image>images/ncsbLogo.png</image>

</sample>

 

<sample>

 <client>The Party Shop</client>

<description>Party supplier business, who needed a tri-fold brochure in
spanish to sell their articles for Quincea-eras</description>

<image>images/partyShopLogo.png</image>

</sample>

 

<sample>

 <client>Sunset Tan</client>

<description>Tanning salon located in jacksonville, fl. We did for them
tri-fold brochures, VIP card design, poster design, mobil ads design,
mail out design</description>

<image>images/sunsetLogo.png</image>

</sample>

 

<sample>

 <client>Xeye incoroprated</client>

 <description>This succesful contracting firm located in downtown
Jacksonville. We did for them their whole new image for the
2007</description>

 <image>images/xeyeLogo.png</image>

 </sample>

 

 

</portFolio>

 

 

//and finally this is the code of myTitleWindow component.

 

 

<?xml version="1.0" encoding="utf-8"?>

<mx:TitleWindow xmlns:mx="http://www.adobe.com/2006/mxml
<http://www.adobe.com/2006/mxml> " layout="absolute" width="400"
height="300" close="closePopUp()" showCloseButton="true"
cornerRadius="20" borderStyle="solid" backgroundColor="#F9F899"
backgroundAlpha="0.82" title="{data.client}">

<mx:Script>

            <![CDATA[

                        import mx.managers.PopUpManager;

            

                        private function closePopUp():void{

                                    PopUpManager.removePopUp(this);

                        }

            ]]>

</mx:Script>   

</mx:TitleWindow>

 

please I need help, I don't get it what else I should do, I googled this
a lot of times and nothing.

 

Regards

 

 

Gustavo Duenas

 

 

 

 

 

                        

 






 

 

Reply via email to