I have function problem using this code (below), the embedded flash movieclip disappears or completely prevents the scrollto.js query to function in DW cs3. Communication between Flash and JavaScript is without problems, it is the call back I can't find to work and more frustratingly, should be simple, as no values are not required. So far, this has been hours of scouring the net without a workable end in sight...ahrr. What is a function for this to work?
JavaScript – to call Flash event from HTML button link, placed between head tags
function callExternalInterface()
var flashMovie = window.document.menu;
flashMovie.menu_up(value);
menu_up is the string. Does anyone know of workable function for callback??
HTML
<div id="btn_up"><a href="#top" name="charDev" id="charDev" onclick="">top</a></div>
Pane navigation div that uses Scrollto.js query, and it's this link I need calling back to the embedded "menubtns.swf" (nested in "AS3Menu_javascript.swf") to play 5 frames of this movieclip, via a JS function. Embedded .swf code, using swfobject.js with allowScriptAccess=always
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="menu"<br/> width="251" height="251" id="menu">
<param name="movie" value="../~Assets/Flash/AS3Menu_javascript.swf" />
<param name="allowScriptAccess" value="always" />
<param name="movie" value="ExternalInterfaceScript.swf" />
<param name="quality" value="high" />
<object type="application/x-shockwave-flash" data="../~Assets/Flash/AS3Menu_javascript.swf" width="250" height="250">
<p>Alternative content</p>
</object>
</object>
AS3 / Flash
import flash.external.ExternalInterface;flash.system.Security.allowDomain(/sourceDomain/);
ExternalInterface.addCallBack("menu_up", this, resetmenu);
function resetmenu(){
gotoAndPlay:("frame label" / "number")
}