Flash/Lectora variable exchange

It is native to flash - versions 8 and above. If you are using version 7 or below you can use getURL and have it call a javascript function but that doesn't seem to work 100% of the time.In an actions layer in flash you could have something like:

Code:

import flash.external.*;next_mc.onRelease = function() { ExternalInterface.call("trivNextPage()"); };

That makes the assumption that you have a movie clip on the stage with an instance name of next_mc. When you import the .swf into Lectora you will need to go to the properties of the animation and under the parameters tab add one called "allowScriptAccess" (for the name) and "always" (for the value) - so the call from flash isn't blocked. Once all of that is done you should have a flash movie that will take you to the next page in lectora. Hope that helps.

Discussions have been disabled for this post