Flash commands to Lectora not working
September 8, 2009 12:00 AM
I have scoured the forum looking for help on this, but I just can't seem to get it to work. I have a Flash animation in my Lectora file and want it to tell Lectora to hide an image when it gets to a specific frame in the .swf. In the past, I used the javascript code, such as:
getURL("javascript:image102.actionHide();");
Now that I am using Lectora 9 and Flash CS4 with ActionScript 3, that code no longer works. I have tried the external interface code, but it's not working, either, even when I test my HTML file on the server:
import flash.external.*
ExternalInterface.call("image102.actionHide();");
I'm wondering about that code, as I just have it on the last frame of my Flash file, as I did before with the getURL. Do I have to add an event listener or call it in another function or something? I am publishing the swf to Flash Player 9 and publishing the course to AICC. I would appreciate any insight into what I might be missing. Thanks.
Discussions have been disabled for this post