Using Flash 8, AS 1/2.
Here’s what I’m trying to do…
I’ve got a slide show sort of thing. Five different scenes. You can navigate scene to scene with simple button navigation. One half of the slide show displays a constant image. The other side displays a different image depending on the scene you’re in.
Along with each different image, there is a caption for each image. When you click on the caption, text from an external XML file is displayed.
I got that far, and I thought everything was working perfectly. Then I changed scenes.
The scenario I’m at right now:
Scene 1 loads. I click on the caption. The text from the external XML file displays.
Click the navigation button to go to Scene 2. The text from the external XML file that displayed when I clicked Scene 1’s caption is displayed.
If I click through the rest of the scenes, the text that was displayed when I clicked on Scene 1’s caption is displayed throughout.
What I need is this:
When I click the caption in Scene 1, the text should appear in show_desc. When I go to another scene, there should be no text unless I click on the caption for that scene.
I’m not sure how to accomplish this, and I’ve been trying everything I could think of/could find with no success.
Thanks so much for your help!
EDIT:
Okay, so… I figured out that problem, sort of.
The caption is set as a button. It’s got an onRelease function, so when it is released, it displays the XML data.
I had a function wrapped around the first function, which delayed the XML-display function by one second.
It seems that, with that function added in, it was just continually asking for the XML data over and over and over again.
The thing is, I do need that delay to occur. What I was using before was:
function wait () {
[Function to call for XML Data]
}
myTimer = setInterval (wait, 1000);
Is there something that needs to be added so that it isn’t constantly asking for the XML data? Or some other way to delay the XML data from being displayed within the onRelease function?
Thanks again!