|
-
can help me with my flash xml loading?
i want to load a xml file very dynamically in flash. i have a xml file as blow:
<?xml version="1.0"?>
<cbs>
<employee>
<number>1</number>
<name>Shi Chuan</name>
<comment>intern</comment>
</employee>
<employee>
<number>1</number>
<name>Shang</name>
<comment>flasher</comment>
</employee>
<employee>
<number>2</number>
<name>Jakson</name>
<comment>rapist</comment>
</employee>
<employee>
<number>2</number>
<name>Charles</name>
<comment>director</comment>
</employee>
</cbs>
when i load it in flash, i hope flash can recognize the value between the <number> tag. and put them into two groups(number 1 one group, number 2 another group) according to their number. in this case, it should display:
1st group:
Shi Chuan
intern;
Shang
flasher
2nd group:
Jakson
rapist;
Charles
director
if i add one more node in xml like below:
<employee>
<number>1</number>
<name>John</name>
<comment>healer</comment>
</employee>
i hope flash can auto-update the info and display:
1st group:
Shi Chuan
intern;
Shang
flasher;
john
healer
2nd group:
Jakson
rapist;
Charles
director;
john
healer
don't know if you guys have any idea how to make it.
pls help me! thank you.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|