I'm trying to start my animation from an html button via jquery, but it just refuses to work. I'm using the following jquery flash plugin:
http://jquery.lukelutman.com/plugins/flash/
I've made the same function work on a non-Smarty site, so I'm thinking it has to do with that or something having to do with the all the extra markup on the page just preventing it from working.
CODE:
<head>
<script type="text/javascript">
$(document).ready(function () {
$('#flash-rockets').flash({
src: 'http://cms.jamesgillmore.com/includes/port/contactform/contactform.swf',
width: '100%',
height: '100%',
allowFullscreen:"true",
base:"http://cms.jamesgillmore.com/includes/port/contactform/",
wmode:'transparent',
params: {
play: false
},
},
{version: 8}
);
});
</script>
</head>
<body>
<div id="flash-rockets" style="position:absolute;top:0;width:100%;height:120px;"> </div>
<input style="position:absolute; top:400px;" onclick="$('#flash-rockets').flash(function(){this.startFly();}) " type="button" id="james" value="start animation" />
</body>