2 Replies - 3090 Views - Last Post: 08 September 2017 - 01:16 PM

#1 Transistor   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 46
  • Joined: 20-November 13

ExternalInterface, JavaScript and LMS

Posted 07 September 2017 - 08:50 AM

Hi

In my actionscript2 code I have this
import flash.external.ExternalInterface;
ExternalInterface.call("lockNext()");



then in the html/js I have this
function unlockNext()
{
	
  document.getElementById("next").disabled = false; 
		
}
function lockNext()
{
  document.getElementById("next").disabled = true; 
	
}




This enables or disables the next button which works fine from desktop or on the server.
However when I run this in ADL Test Suite 1.2.7 (scorm/lms testing) it doesn't work.

Is there a way to get this to work ?

Thanks.

Is This A Good Question/Topic? 0
  • +

Replies To: ExternalInterface, JavaScript and LMS

#2 ArtificialSoldier   User is online

  • D.I.C Lover
  • member icon

Reputation: 2333
  • View blog
  • Posts: 7,109
  • Joined: 15-January 14

Re: ExternalInterface, JavaScript and LMS

Posted 07 September 2017 - 10:14 AM

I would open your browser's developer tools to see if there are any error messages. I would doubt it, but maybe the test suite page already defines a function with that name.
Was This Post Helpful? 0
  • +
  • -

#3 Transistor   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 46
  • Joined: 20-November 13

Re: ExternalInterface, JavaScript and LMS

Posted 08 September 2017 - 01:16 PM

Seem the issue is with ADL Test Suite. I tried it in an online SCORM testing site and it works just fine.
We had problems with ADL. Would only work in IE but not Firefox. However IE kept complaining that my Java was out of
date so I upgrade Java and now ADL won't work at. Oh well, I found something better that works.

Thanks anyway.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1