xml - Assigning functions to dynamic movieclips in a loop, ActionScript 2 -


I did the same thing in Action Script 3, but I'm not familiar with Action Script 2, which I use for it I am compelling to project. I am loading products in an SWF via XML and try to add a click event on every dynamically created movieclip. Simply typing the text from a node in XML will be done for now. I want to specify the property for each movie clip called "desc" or "description" and clicking on it will determine the value of that property. This is the relevant part of my code as it stands:

  var iXML: XML = new XML (); IXML.ignoreWhite = True; IXML.onLoad = init; IXML.load ("http: // localhost: 8888 / products.php p = shortboards?"); Function Init (): Zero {var imgNum: number = iXML.firstChild.childNodes.length; Var holder_mc: Movieclip = slider.Creating algorithm ("holder_mc", slider.tags_design ()); For (var i: number = 0; i  

  var iXML: XML = new XML (); IXML.ignoreWhite = True; IXML.onLoad = init; IXML.load ("http: // localhost: 8888 / products.php p = shortboards?"); Function Init (): Zero {var imgNum: number = iXML.firstChild.childNodes.length; Var holder_mc: Movieclip = slider.Creating algorithm ("holder_mc", slider.tags_design ()); For (var i: number = 0; i  

Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -