Hiya, I am dynamically creating movie clips that I load external swfs into and want these movie clips to fire onRollOver events though I'm not sure of the syntax to do this. As you can see from my code i am loading the info from an XML file. If anyone knows how to do this I would be really grateful. Here's where I am at the mo (which does not work)
var headTarget:MovieClip = race_mc["cage_mc"]["pic"+(i+1)+"_mc"]; race_mc["cage_mc"]["pic"+(i+1)+"_mc"].myName = xml.firstChild.childNodes[(courseNo-1)].firstChild.childNodes[i].nodeName; race_mc["cage_mc"]["pic"+(i+1)+"_mc"].onRollOver = function(){ trace("I AM A HEAD:"+this.myName) } Thanks everyone ! :) Danny _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com