Hi-
I am able to pass a variable from an html link that loads a separate html file and instructs the embedded file to go to a specific frame.
But - I now need a link within an swf file on one page to open a new page and tell that swf to start on a specific frame and it is not working. Here is the code I use for the first example - works like a champ:
html file 1
<a href="fullpage.html?stateVar=19">Go here</a>
html file 2 swf embed code with variable info:
<script type="text/javascript">
// <![CDATA[
var so = new SWFObject("yourSWF.swf", "sotester", "500", "500", "8", "#FF6600");
so.addVariable("stateVar", getQueryParamValue("stateVar"));
so.addParam("scale", "noscale");
so.write("flashcontent");
// ]]>
</script>
code in my swf that helps it get to that specific frame that was passed in:
trace(stateVar); gotoAndStop(stateVar); // etc...
all works - BUT when I try to use a link from an embedded swf on page 1 instead of a html link - it does not work. Here is the code on my button in that swf:
on (release) {
getURL("fullpage.html?stateVar=19");
}
any help so appreciated!
Shawna