eagleofdoom
07-11-2005, 12:53 AM
i there
I'm trying out this javascript integration kit for the first time:
http://weblogs.macromedia.com/flashjavascript/
I'm playing with building some os x dashboard widgets using flash and there seem to be some issues with mouse events, but that's another story: I'm basicly trying to use javascript for my buttons, and very simply get my movie to play on click.
I've got it going pretty good, it does what it should but it stops working after a couple of minutes for some reason.
this is the head javascript:
var lcId = new Date().getTime();
var flashProxy = new FlashProxy(lcId, "JavaScriptFlashGateway.swf");
function kickFlash(){
flashProxy.call("playIt");
}
and later on, the flash movie which is inserted using the kit's function:
<script type="text/javascript">
var sample = new FlashTag("tim.swf", 70, 58);
sample.setFlashvars("lcId=" + lcId);
sample.write(document);
</script>
anyone else had this problem?
I'm trying out this javascript integration kit for the first time:
http://weblogs.macromedia.com/flashjavascript/
I'm playing with building some os x dashboard widgets using flash and there seem to be some issues with mouse events, but that's another story: I'm basicly trying to use javascript for my buttons, and very simply get my movie to play on click.
I've got it going pretty good, it does what it should but it stops working after a couple of minutes for some reason.
this is the head javascript:
var lcId = new Date().getTime();
var flashProxy = new FlashProxy(lcId, "JavaScriptFlashGateway.swf");
function kickFlash(){
flashProxy.call("playIt");
}
and later on, the flash movie which is inserted using the kit's function:
<script type="text/javascript">
var sample = new FlashTag("tim.swf", 70, 58);
sample.setFlashvars("lcId=" + lcId);
sample.write(document);
</script>
anyone else had this problem?