Javascript to call an swf?
Hi,
I have what I think is a reasonably simple reuirement. I have a simple site consisting of a few frames. In one frame is an swf created from swish. This is my menu, from which I call javascript to change pages. All works well.
However, in one of the html pages I want a call back to the SWF to change the swf (move it onto the next scene for instance). And now I'm stuck!!
I've referred to Fret's tutorial, but I'm getting confused! I want to call the swf change from an onClick event by calling a function that changes the swf and other pages (function is in place).
Can someone help? My code as things stand is:
This is the movie setup:
Code:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0"
width="207" height="468">
<param name="movie" value="files/left.swf">
<param name="quality" value="high">
<embed src="files/left.swf" quality="high"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash"
width="207" height="468" SWLIVECONNECT="True" NAME="left">
</embed></object>
This is my function:
Code:
function launchApp(appname){
top.left.left.TGotoFrame(24);
top.main.location.href="welcome_app.htm";
top.bottom.location.href="bottom_app,htm";
}
Many thanks!
Edited to fix word-wrap