ckennerdale
Programmer
I want to have a link or a button onmy web page that when I click it it will go to specific frame in an embedded movie. I want to have several movies on the page. Flash is being used as an additionalfeature of my presentaion asopposed to beong the heart.
My assumption is to name each flash object with a unique name,and then with a piece of javascript I can reference a specific movie and GoToFrame.
However it is not quite working,I am not sure if I have missed a point here or if I have to load an additional library or something.
Here is my code-
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" width="212" height="56" id="ButtonsM">
<param name=movie value="consol_buttons.swf">
<param name=quality value=high>
<embed src="consol_buttons.swf" quality=high pluginspage=" type="application/x-shockwave-flash" width="212" height="56" name="ButtonsM">
</embed>
</object>
<a href="javascript:test();">test</a>
(and here is my javascript that resides in the head of the html page)
function test(){
var ButtonsM = window.document.ButtonsM;
ButtonsM.GotoFrame(5);
}
Thanks in advance Caspar Kennerdale
Senior Media Developer
My assumption is to name each flash object with a unique name,and then with a piece of javascript I can reference a specific movie and GoToFrame.
However it is not quite working,I am not sure if I have missed a point here or if I have to load an additional library or something.
Here is my code-
<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" width="212" height="56" id="ButtonsM">
<param name=movie value="consol_buttons.swf">
<param name=quality value=high>
<embed src="consol_buttons.swf" quality=high pluginspage=" type="application/x-shockwave-flash" width="212" height="56" name="ButtonsM">
</embed>
</object>
<a href="javascript:test();">test</a>
(and here is my javascript that resides in the head of the html page)
function test(){
var ButtonsM = window.document.ButtonsM;
ButtonsM.GotoFrame(5);
}
Thanks in advance Caspar Kennerdale
Senior Media Developer