Ok. I've managed to figure out how to duplicate clips, change links, and do all kinds of wonderful things using xml integrated into flash. What I'm having a hard time doing is setting up the xml image file to load into a movie clip.
Heres the xml tier for a given button. <name> loads into the "name" text file and Everything else is either a button link or a way to organize the data. For some reason I can't get the image to load into the target. If anyone knows what I'm doing wrong let me know. Yes, the target is named "image" and it is being linked out so it loads.
<Product>
<Name>Video1</Name>
<Category>Video</Category>
<ImageURL>video/1/1.swf</ImageURL>
<DescriptionURL>video/video1.txt</DescriptionURL>
<W56>video/1/w56.ram</W56>
<W100>video/1/w100.ram</W100>
<W300>video/1/w300.ram</W300>
<Q56>video/1/q56.ram</Q56>
<Q100>video/1/q100.ram</Q100>
<Q300>video/1/q300.ram</Q300>
<R56>video/1/r56.ram</R56>
<R100>video/1/r100.ram</R100>
<R300>video/1/r300.ram</R300>
</Product>
To sum it up, I've tried many things, but I need to be able to build a frame action to load the url into the target of the specific button (using objectsource) but before that, I need to set up this function:
function getImage (Product) {
for (CounterA=0; CounterA<Products.length; CounterA++) {
if (Products[CounterA].Name == Product) {
showImage(Products[CounterA].Image);
loadMovie (Image, Products[CounterA].Image);
break;
}
}
}
function showImage (Image) {
loadMovie (Image, Products[counterA].Image);
}
Here's the frame action:
_root.getimage (image);
I'm sure it's something obvious, but I'm tired.
Blended
By the way, to see how it works go to
Heres the xml tier for a given button. <name> loads into the "name" text file and Everything else is either a button link or a way to organize the data. For some reason I can't get the image to load into the target. If anyone knows what I'm doing wrong let me know. Yes, the target is named "image" and it is being linked out so it loads.
<Product>
<Name>Video1</Name>
<Category>Video</Category>
<ImageURL>video/1/1.swf</ImageURL>
<DescriptionURL>video/video1.txt</DescriptionURL>
<W56>video/1/w56.ram</W56>
<W100>video/1/w100.ram</W100>
<W300>video/1/w300.ram</W300>
<Q56>video/1/q56.ram</Q56>
<Q100>video/1/q100.ram</Q100>
<Q300>video/1/q300.ram</Q300>
<R56>video/1/r56.ram</R56>
<R100>video/1/r100.ram</R100>
<R300>video/1/r300.ram</R300>
</Product>
To sum it up, I've tried many things, but I need to be able to build a frame action to load the url into the target of the specific button (using objectsource) but before that, I need to set up this function:
function getImage (Product) {
for (CounterA=0; CounterA<Products.length; CounterA++) {
if (Products[CounterA].Name == Product) {
showImage(Products[CounterA].Image);
loadMovie (Image, Products[CounterA].Image);
break;
}
}
}
function showImage (Image) {
loadMovie (Image, Products[counterA].Image);
}
Here's the frame action:
_root.getimage (image);
I'm sure it's something obvious, but I'm tired.
Blended
By the way, to see how it works go to