Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

more xml stuff (Dave?)

Status
Not open for further replies.

blended

Programmer
Aug 8, 2000
154
US
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 &quot;name&quot; 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 &quot;image&quot; 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
 
Hi Blended

Bummer, my knowledge of XML is next to nothing so I'm out of this one I'm afraid. But shouldn't the frame action be:

Code:
_root.getimage (Image);

...(capitalised 'I' in 'image') instead of...

Code:
_root.getimage (image);

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
Maybe. I think I've tried spelling things all of the same (the finicky xml stuff!) and to no avail. I'm sure I&quot;ll figure it out. BY the way, I know your stuck up near Aberdeen or something, but I&quot;ll be in London in a few weeks if you find yourself down there. The more &quot;business&quot; stuff I can do the easier it'll be to write off the whole trip as &quot;business&quot;.

Blended
 
I'm in Edinburgh. Any way you could get up? Only a few hours on the train?
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
ps: we just acquired a new office this week, and after refurbishment we expect to move in around the 1st July, at which time we will be having our 'office-warming'. You couldn't get more of a 'business' excuse, networking for future clients et al.

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
Huh.

Where are you again? Somewhere in Scotland, I thought. Is that where the new offices are?

Blended
 
Edinburgh, Scotland. New office is a couple of hundred yards from the new Scottish Parliament building.

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
Well that sounds nice. I admit I was hoping for glasgow or aberdeen due to I've never been to those cities before. Anyway, I'll visit Edinburgh again if you can recommend a ghetto inn I and a few others can stay in. It'd be nice to visit the legendary Dave!

Blended
 
Excellent!

Why don't you e-mail me with a budget and I'll get a quote.

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top