Optimal scenario/arrangement: Imagine a webpage with one Flash movie and a separate section containing several hyperlinks. Each of these hyperlinks is given a distinct class name, like this: Copy code
<ul>
<li><a href="" class="randomname1"></a></li>
<li><a href="" class="randomname2"></a></li>
<li><a href="" class="randomname3"></a></li>
<li><a href="" class="randomname4"></a></li>
</ul>
The Flash movie features four buttons. When a user clicks on one of these buttons, the Flash should communicate with Jquery/JavaScript to highlight the specific classname.
Current Concepts
For the JavaScript segment, it might appear like this
$(function() {
function setClass(className) {$("."+className).css("background","red");}
});
And in certain keyframes within Flash
1. button 1
ExternalInterface.call("setClass","randomname1");
1. button 2
ExternalInterface.call("setClass","randomname2");
1. button 3
ExternalInterface.call("setClass","randomname3");
1. button 4
ExternalInterface.call("setClass","randomname4");
The issue is that the interaction between Flash and JS is not functioning as intended, and I am uncertain if they are properly communicating. Any suggestions or guidance to steer me back on track? Thank you for your help, J.