Having trouble with Flash, Javascript and JQuery

Posted by andypants on Stack Overflow See other posts from Stack Overflow or by andypants
Published on 2010-03-16T16:58:25Z Indexed on 2010/03/16 17:01 UTC
Read the original article Hit count: 129

I'm using JQuery with the JQuery flash plugin (http://jquery.lukelutman.com/plugins/flash/) and trying to send a JS call back to the flash, I keep running into "xxx is not a function" so apparently something is off. I'm new to JQuery and very new to this jquery flash plugin and just can't quite wrap my head around what I am doing wrong.

Here's where I'm lading up the flash:

<div id="tagimgback">
<script language="javascript">
$(document).ready(function(){
$('#tagflash').flash(
    {
      src: 'tagflash',
      width: 200,
      height: 200,
      flashvars: {theYear:'2010',theTagNumber:'123'}
    },
    { version: 8 }
);

});
</script>
</div>

And here's where I'm trying to call it:

$("#tagflash").gotoNewFrame(theTagNumber);

gotoNewFrame is an AS function within my flash. I know the function works as I've been able to test it prior to bringing jQuery into the mix.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about actionscript-3