header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
Amutha
Points:0
Posts:0

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?



1
Rex
Points: 0
Posts:0
12/11/2009 2:55:13 AM



do you want to load images in image control in title window using xml ?

2
Amutha
Points: 0
Posts:0
12/11/2009 3:44:57 AM



s

3
Rex
Points: 0
Posts:0
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>

4
amutha
Points: 0
Posts:0
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?

5
Rex
Points: 0
Posts:0
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.


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 1+18+1 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions