XML Array 'Undefined' Inside A Function


i've been working on flash video player in icons float in circular motion around large video window. when click on 1 of floating icons, want video play in large window. whole thing reads xml file images inside icons videos play:

<icons>
<icon image="icon1.jpg" url="promo1.flv" />
<icon image="icon2.jpg" url="promo2.flv" />
and on.....
</icons>

the attached actionscript below giving me problem. loads fine , looks great. image attribute works fine. but, when down part says ns.play(" http://......, in testing phase gives me "error opening url " http://www.ktul.com/static/videos/undefined"". i'm sure it's because it's inside function. but, don't know can make work. can view thing in action @ http://www.ktul.com/static/newcarousel.swf ideas?

thanks
kevin

first, since nodes local variable onload handler, won't able reference inside onpress handler. also, value of not kept @ value when icon clip being created, ie @ numofitems time click on icon. simple remedy make icon clip *know* it's corresponding url:


More discussions in ActionScript 1 and 2


adobe

Comments

Popular posts from this blog

Connecting Raspberry Pi 2 to P10(1R)-V706 LED Dot Matrix - Raspberry Pi Forums

TypeError: <unknown> is not a numpy array - Raspberry Pi Forums

datso and removing imagetitle - Joomla! Forum - community, help and support