hey all,
I am tryin to follow the examples from the Prog in AS3 book the
XML ones
var x:XML =
<employeeList>
<employee id="347">
<lastName>Zmed</lastName>
<firstName>Sue</firstName>
<position>Data analyst</position>
</employee>
<employee id="348">
<lastName>McGee</lastName>
<firstName>Chuck</firstName>
<position>Jr. data analyst</position>
</employee>
</employeeList>
x.employee.(@id == 347).lastName // This is the lastName property of the
first
employee node. So far so good....
so now if I should do x.employee.(@id == 347).parent shouldnt I get the
parent Node as an XMLList
like in my example for
var cues:XMLList=(_slides.cue.(@value > previousCuePoint && @value <
video_HSlider.value)
i get back
<cue value="20"/>
<cue value="68"/>
<cue value="100"/>
so If i were to access a the sibling node say for value 20 I want to get the
content node the url attribute
var cues:XMLList=(_slides.cue.(@value > previousCuePoint && @value <
video_HSlider.value).content // this would not work since it would look for
content as child node for cue
( hope I am correct here ) . so if I shoudl say return the parent shouldnt
that return a XMLList of the parent nodes ??
<slide id="366" frameRate="30" totalFrames="150" advance="auto"
type="normal">
<cue value="20"/>
<content url="Slide1.swf"/>
<slideTitle>1.Adobe Connect Solutions</slideTitle>
<slideBackground index="1" frameToPlay="3" duration="00:10"
showAfterFrame="0"/>
<notes isHTML="true">
</slide>
thanks for all the help :)
firdosh