Controlling Flash with EI

approg
approg Community Member Posts: 258 ♪ Opening Act ♪

I agree. Lectora's Flash communication / embedding is broken and has been broken for quite some time. I've submitted similar feedback months ago. The problems appear in IE consistently using FP 10 and extend to variable communication or function calls across the player boundary. Things work ok in Firefox as far as I can tell.

I can't find where the Lectora Flash instantiation is creating an ID for the object. This is where I'm guessing the failure is happening.

I can communicate just fine with my Flash pieces if I embed them using SWFObject and an externalHTML object (bottom of file):

THIS WORKS:



Code:


  
   
   var flashvars = {};
   var params = { 
   menu: "false"};
   var attributes = {};
   flashvars.surveyComplete=VarsurveyComplete.getValue();
   flashvars.lessonComplete=VarlessonComplete.getValue();
   attributes.id = "lectoraMovie";
   swfobject.embedSWF("wpv_completion.swf", "lectoraMovie", "848", "493", "9.0.0", false, flashvars, params, attributes);
  

  



Flash Command Set Variable - Name: lessonComplete Value: VAR(lessonComplete) << FAILS. As does any cross boundary callbacks to or from Flash to retrieve or set data.</p>

It's not a security thing either. We've eliminated that by using SWFObject embedding WITHOUT ANY security change whatsoever.