try [EMAIL PROTECTED] 

----- Original Message ----
From: "NileAge, Mail" <[EMAIL PROTECTED]>
To: [email protected]
Sent: Tuesday, February 12, 2008 10:37:28 AM
Subject: RE: [flexcoders] Problem With XML

I want to get a certain value.
In the code below "  ProjName = [EMAIL PROTECTED] ame;   "  for first attribute 
or second.
This is my code:
 
The Flex:
------------ --------- --------- --------- --------- --------- --------- 
--------- --------- --------- --------- --------- --------- --------- --------- 
--------- --------- --------- ------
<mx:HTTPService id="ProjStyleData" url="ProjectsStyle. xml " resultFormat="e4x" 
result="ProjectsStylesHandl er(event)"/>
<mx:Script>
                                <![CDATA[
                                                [Bindable]
                                                private var ProjName:String;
[Bindable]
                                                private var ProjectNumber: int;
                                                public function 
ProjectsStylesHandl er(event: ResultEvent) :void
                                                {
                                                                StyleList = 
event.result. .theStyle;
                                                                
Alert.show(StyleLis [EMAIL PROTECTED] + " - " + [EMAIL PROTECTED]) ; 
                                                                ProjName = 
[EMAIL PROTECTED] ame;
                                                }
public function ProjectClick( ProjID:int) :void
                                                {
                                                                ProjectNumber = 
ProjID;
                                                                ProjStyleData. 
send();
                                                }
]]>
                </mx:Script>
------------ --------- --------- --------- --------- --------- --------- 
--------- --------- --------- --------- --------- --------- --------- --------- 
--------- --------- --------- ------
The XML:
<ProjStyle>
  <items>
    <theStyle ProjectID="1" ProjectName="Almaza" BG="BG.swf" Body="BODY.swf" />
    <theStyle ProjectID="2" ProjectName="Makadi" BG="BG.swf" Body="BODY.swf" />
  </items>
</ProjStyle>
------------ --------- --------- --------- --------- --------- --------- 
--------- --------- --------- --------- --------- --------- --------- --------- 
--------- --------- --------- ------
 
From: [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of Sherif Abdou
Sent: Tuesday, February 12, 2008 5:16 PM
To: [EMAIL PROTECTED] ups.com
Subject: Re: [flexcoders] Problem With XML
 
how are you retreiving the attribute?
----- Original Message ----
From: "NileAge, Mail" <[EMAIL PROTECTED] com>
To: [EMAIL PROTECTED] com; Flex Components <flexcomponents@ yahoogroups. com>; 
[EMAIL PROTECTED] ups.com; [EMAIL PROTECTED] ups.com; [EMAIL PROTECTED] ps.com
Sent: Tuesday, February 12, 2008 8:28:26 AM
Subject: [flexcoders] Problem With XML
I have a problem when I try to start application to get some data from database 
on creationComplete event and  then set this data in xml file then when I click 
on LinkBar Item to change the data and get certain attribute, the problem that 
I get all attributes when I want only one attribute.
 
example: 
get the data of ProjectID="1"
                                                                                
                                                                                
                                                               
<ProjStyle>
  <items>
    <theStyle ProjectID="1" ProjectName="Almaza" BG="BG.swf" Body="BODY.swf" />
    <theStyle ProjectID="2" ProjectName="Makadi" BG="BG.swf" Body="BODY.swf" />
  </items>
</ProjStyle>
 
 



Looking for last minute shopping deals? Find them fast with Yahoo! Search.



      
____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 

Reply via email to