PDA

View Full Version : Flash JavaScript Integration Kit Help Needed


Zath
08-26-2005, 12:51 PM
There may be a few on here that have used the Flash JavaScript Integration Kit. Hopefully someone can give me some input on why I can't seem to get it to work....

All files needed are there. All classes referenced. All .js files referenced.

I made a test page, with no frames and no other functions, and still this actionscript function is not being called.


public function setVar():Void
{
_root.isBrowser = true;
getURL( "javascript:alert( 'test' );" );
}


This is being called ok which is on the htm page between head and script tags...

var uid = new Date().getTime();
var flashProxy = new FlashProxy(uid, 'JavaScriptFlashGateway.swf');

But no matter where and how I put this...

flashProxy.call('setVar');

It will not call it. Only time it ever does anything is if I place it in the body after this....

<script language=javascript>
var tag = new FlashTag('container.swf', 800, 600, '7,0,14,0');
tag.setFlashvars('lcId='+uid);
tag.write(document);

//flashProxy.call('setVar');
//ERROR here: IE can not open the internet
//site ...mytestpage.htm
</script>

I have been all over the flash site where help is for the kit, looked at sample projects but just can't seem to get this working.

Any suggestions? Anyone????

Thanks,