So just to make sure I'm on the right page, I would need my flash button to trigger a javascript variable, and then call that within the span on the onclick?
Not exactly. You want to either:
1) Configure your Flash code so clicking on it causes the onClick event handler of the containing SPAN to fire. In the above sample, an alert message will pop up if successful:
Code:
<span onClick="alert('hi')">
Flash code here
</span>
OR
2) Modify your Flash code to call a JavaScript code when clicked on, or the direct approach:
<span>
Code:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="200" height="50" id="bobcontent1-title" align="middle">
<param onClick="alert('hi')" />
</object>
</span>
For the later, that's just a mockup, as I have no idea how or if Flash can call a JavaScript code when clicked on directly.
Bookmarks