I’m going thru the kirupa example of using loading XML data in flash. I came across this example, most of the logic makes sense to me but I don’t understand the syntax
preloadbar_mc.target = my_xml; //my_xml is reference to the loaded XML object.
what does movieclip.target mean? I’ve search for movieclip.target but could not find any documentation… your explanation is appreciated!
***For some reason, the forum is stripping out all the newslines in the code I’m pasting below! argghhh ****
preloadbar_mc.onEnterFrame = function(){if (!this.target) return (0);var loaded = target.getBytesLoaded();var total = target.getBytesTotal(); var scale = 0;if (loaded && total){var percent = loaded/total;scale = 100 * percent;} this._xscale = scale;}
preloadbar_mc.target = my_xml;