I’m struggling a bit with a conditional statement…I thought I’d run it by you folks
I’m certain what I’m trying to do is extremely simple but I cant seem to nail it.
Here’s the senario…
I have a container SWF movie that loads other child SWFs (in a sequence) upon request.
The I’d like to have the child movies load the next child movie (of the sequence) into the Container SWF once it’s been viewed.
No problem right…I just put a frame action at the end of each child movie that tells the Container SWF which is the next Child SWF to load - that’s easy.
Here’s the kicker…
The child movies have to have the ability to be viewed solo in an HTML page as well as when loaded into a Container SWF. So if I put a frame action at the end of each child movie that tells the Container SWF which is the next Child SWF to load and there’s no Container movie present - that’s a problem.
So this is what I’m trying to do.
I will pass a variable form the embed parameter of the solo HTML pages that would tell the Child movie that it’s supposed to behave as a solo movie.
Basically, I’ll set the value of a variable in the embed parameter (i.e. solo=yes)
Then, on the second to last frame of each of the Child SWFs I’ll put a conditional statement of some sort that says “IF the value of solo = yes, then stop here, otherwise play on brother” then on the last frame is where I would put the frame action that tells the Container SWF which is the next Child SWF to load.
Does this make sense?
Could you help me with the syntax?
this doesnt seem to work:
if (solo==yes) {
stop();
}
else {
play();
}
What am I missing? Any help would be greatly appreciated.