stupid flash/me
- Started
- Last post
- 3 Responses
- Cenitgrade
Hi Guys (I've tried posting this on flash forums but everyone has wisely gone to bed),
I'm using a listerner to get captions from a list of photos in a XML file (that the Slideshow Pro Component uses). I have thumbnails on the stage that I want to effect depending on which one the SSP component loads. Here's what I have:
listenerObject = new Object();
listenerObject.onImageData = function(eventObject):Void {
var thumbNo= eventObject.data.caption
trace(thumbNo)
Tweener.addTween(thumbNo,{_autoA... time:0, delay:0});
}
mySSP.addEventListener("onImageD... listenerObject);the captions are getting traced out correctly but I can't use that to effect a MC with the same name. How do I convert it to a MC reference?
I've tried adding :Number, :String etc this to no avail. Any ideas?
Thanks,
Ian
- Cenitgrade0
DOh, it truncated my code but any way it the thumbNo that I want to use as a MC reference.
- Cenitgrade0
_root[MCNAME] ( in my case _root[thumbNo] )
Bingo! Worked. Thanks a million.