0% found this document useful (0 votes)
7 views2 pages

Flash - AS3 XML Attribute Specified - Equipie

Adobe Flash XML attributes cheatsheet

Uploaded by

Mohammed Elzain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views2 pages

Flash - AS3 XML Attribute Specified - Equipie

Adobe Flash XML attributes cheatsheet

Uploaded by

Mohammed Elzain
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

3/14/2013 Flash: AS3 XML attribute specified | Eq…

22nd March 2011 Flash: AS3 XML attribute specified


Given the XML:

<_banner id="1">
<_loadermax name="bannerLoader" maxConnections="4" load="true">
<_layer level="0">
<_imageloader name="level0" url="assets/valentines-grad.jpg" xpos="0" ypos="0"
estimatedBytes="1024">

<_layer level="1">
<_swfloader name="level1" url="assets/beat.swf" xpos="0" ypos="0" estimatedBytes="9216">

<_layer level="2">
<_swfloader name="level2" url="assets/loveyou.swf" xpos="0" ypos="0"
estimatedBytes="32768">

<_layer level="3" type="button">


<_button name="level3" xpos="0" ypos="0" link="www.google.co.uk">

To select the button I've used:

trace(xmlSource.LoaderMax.layer.(attribute("type") == "button"));

and can use

trace(xmlSource.LoaderMax.layer.(attribute("type") == "button").Button.@name);

to drill down

Posted 22nd March 2011 by Alex

…blogspot.com/…/flash-as3-xml-attrib… 1/2
3/14/2013 Flash: AS3 XML attribute specified | Eq…

…blogspot.com/…/flash-as3-xml-attrib… 2/2

You might also like