This content has been marked as final. Show 3 replies
You should store the file name in a variable and change out the file name programmatically through button clicks.
var xmlFile = "myxml1.xml";
You just need to replace the file name in: xmlData.load("images.xml"); with
your variable name, set by FlashVars. I'd suggest using SWFObject to set the
flash var - it makes it really easy.
var so = new SWFObject("gallery.swf", "gallery", "400", "300", "8",
</script>Then in Flash:
Adobe Community Expert
That worked perfectly! Thanks!
funny though, I could have sworn I did it just like that when I was messing around and it didn't work.. but for testing I just did a plain ole embed through dreamweaver so maybe I needed swfobject to make it work right :)
swfobject is great, we've been using it for a while :)