Embedding Flash with External html Object
May 8, 2005 12:00 AM
We are currently using the below. Where the index of the course is followed by a param. We had to custom build the manifest to pass the param. Where 'week' is a variable in Lectora. Then Flash reads the variable week when it is loaded.var offsetParmoffsetParm = parent.location.href.indexOf( '?week=' )//alert(offsetParm)//alert(parent.location.href)if( offsetParm >= 0 ) { var week = parent.location.href.substring( offsetParm + 6 ) VarWeek.set( week )//alert(week)}The other way is to get a variable from lectora in flash using get URL. There are quite a few posts on this but the way I work it is: getURL("javascript:window.document.FlashObject.SetVariable(' _root.checkMe', VarmyCheckStatus.getValue())");Where _root.checkMe is a variable in flash and myCheckStatus is a variable in lectora. There are quite a few posts on this an example -- search for Flash and Variables.Cheers!Simon
Discussions have been disabled for this post