juworld
07-15-2005, 09:02 PM
I just started using the xml connector. I am making swf by binding these components: xml connector, combo box, and text area
This is my xml:
<communities>
<community id="community_0" type="isc" name="c 0" src="">
<description>This is community 0 bla bla bla...</description>
</community>
<community id="community_1" type="isc" name="c 1" src="">
<description>This is community 1 bla bla bla...</description>
</community>
<community id="community_2" type="isc" name="c 2" src="">
<description>This is community 2 bla bla bla...</description>
</community>
</communities>
<plans>
<plan id="plan_0" community_id="community_0">
<bedrooms>5</bedrooms>
<bathrooms>2.5</bathrooms>
<size>3500</size>
<type>house</type>
<price>1500000</price>
</plan>
<plan id="plan_1" community_id="community_0">
<bedrooms>4</bedrooms>
<bathrooms>2.5</bathrooms>
<size>3000</size>
<type>house</type>
<price>1000000</price>
</plan>
<plan id="plan_2" community_id="community_1">
<bedrooms>4</bedrooms>
<bathrooms>2.5</bathrooms>
<size>3200</size>
<type>house</type>
<price>1200000</price>
</plan>
</plans>
</map>
I got the combo box to display a list of plans. However, I want the textarea to display community description.
I know I can do it easily by simply putting the description under my plan tag. However, I will eventually have 100+ plans with 20+ communities. I know the description will be updated in the future and I do not want to go through the description in my plan tag to do that.
So I am just wondering if I can map it through binding?
Thanks in advance!
Justin
This is my xml:
<communities>
<community id="community_0" type="isc" name="c 0" src="">
<description>This is community 0 bla bla bla...</description>
</community>
<community id="community_1" type="isc" name="c 1" src="">
<description>This is community 1 bla bla bla...</description>
</community>
<community id="community_2" type="isc" name="c 2" src="">
<description>This is community 2 bla bla bla...</description>
</community>
</communities>
<plans>
<plan id="plan_0" community_id="community_0">
<bedrooms>5</bedrooms>
<bathrooms>2.5</bathrooms>
<size>3500</size>
<type>house</type>
<price>1500000</price>
</plan>
<plan id="plan_1" community_id="community_0">
<bedrooms>4</bedrooms>
<bathrooms>2.5</bathrooms>
<size>3000</size>
<type>house</type>
<price>1000000</price>
</plan>
<plan id="plan_2" community_id="community_1">
<bedrooms>4</bedrooms>
<bathrooms>2.5</bathrooms>
<size>3200</size>
<type>house</type>
<price>1200000</price>
</plan>
</plans>
</map>
I got the combo box to display a list of plans. However, I want the textarea to display community description.
I know I can do it easily by simply putting the description under my plan tag. However, I will eventually have 100+ plans with 20+ communities. I know the description will be updated in the future and I do not want to go through the description in my plan tag to do that.
So I am just wondering if I can map it through binding?
Thanks in advance!
Justin