12/11/2009 1:30:28 AM
Title:
titlewindow
hi..can i load xml data dynamically to image control in title window using flex 3?
12/11/2009 2:55:13 AM
do you want to load images in image control in title window using xml ?
12/11/2009 5:13:47 AM
To load multiple images you can use repeater like this
Your images xml file save as "myImages.xml"
<?xml version="1.0" encoding="utf-8"?>
<images>
<image src="images/a.png" alt="a" />
<image src="images/b.png" alt="b" />
<image src="images/c.png" alt="c" />
<image src="images/d.png" alt="d" />
</images>
//MXML code
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:XML id="myImagesXML" source="myImages.xml" />
<mx:HBox id="hBox">
<mx:Repeater id="myRepeater" dataProvider="{myImagesXML.image}">
<mx:Image source="{myRepeater.currentItem.@src}" toolTip="{myRepeater.currentIndex}:{myRepeater.currentItem.@alt}" />
</mx:Repeater>
</mx:HBox>
</mx:Application>
12/11/2009 11:15:38 PM
thanks rex.. but i want it in title window can i do it? i tried it but i cannot directly get the xml data's in title window.. i used hbox inside the title window then only i can see the all the data's.... is there any possibility to load all the xml data's in title window directly?
12/13/2009 1:23:03 AM
instead of using hbox component you can use title window there .
You need to place repeater and image control inside title window only like i have placed itin hbox.