Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
22
Task/XML-Input/ActionScript/xml-input.as
Normal file
22
Task/XML-Input/ActionScript/xml-input.as
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
package
|
||||
{
|
||||
import flash.display.Sprite;
|
||||
|
||||
public class XMLReading extends Sprite
|
||||
{
|
||||
public function XMLReading()
|
||||
{
|
||||
var xml:XML = <Students>
|
||||
<Student Name="April" />
|
||||
<Student Name="Bob" />
|
||||
<Student Name="Chad" />
|
||||
<Student Name="Dave" />
|
||||
<Student Name="Emily" />
|
||||
</Students>;
|
||||
for each(var node:XML in xml..Student)
|
||||
{
|
||||
trace(node.@Name);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue