Flash to Lectora

ryguy
Community Member Posts: 14
I've seen this many times and I've had to do this myself a few times.I got my idea from this post: http://community.trivantis.com/forum_posts.asp?TID=241It uses part of the javascript that Tim has shown.Here is Flash passing values to a Lectora page: http://www.3ee.com/ryguy/lect/Here is the source files:http://3ee.com/ryguy/lect/flash_lect.zipBASICS: Sets up the Go variable in Lectora. MAKE SURE the Go variable created in Lectora first. The function setFlashQuestion1Score( score ) passes the score variable into Lectora.Lectora sets the Go variable in Lectora to the score variable.REMEMBER: when using Javascript to set/read variables into Lectora, you MUST always haveVar in front of the Lectora variable.//Copy here for External HTML object using header scripting in LectoraVarGo= new Variable( 'Go', '0', 0, 0, null )function setFlashQuestion1Score( score ){ VarGo.set( score )}Hope this helps!-RyEdited By: ryguy on 38573.7341435185
Categories
- 35.9K All Categories
- 109 ✫ Announcements
- 33.1K Lectora®
- 31.1K Lectora Discussions
- 29K Lectora Desktop
- 2K Lectora Online
- 2K Lectora Feature Requests
- 71 Lectora User Groups
- 36 Lectora Accessibility User Group (LAUG)
- 25 ELB Learning Content
- 25 ELB Learning Content Discussions
- 329 CenarioVR®
- 196 CenarioVR Discussions
- 133 CenarioVR Feature Requests
- 42 Rockstar Learning Platform®
- 39 Rockstar Learning Platform Discussions
- 108 CourseMill®
- 108 CourseMill Discussions
- 47 ReviewLink®
- 47 ReviewLink Discussions
- 7 The Training Arcade®
- 7 The Training Arcade Discussions
- 936 All Things eLearning
- 37 eLearning Development
- 546 Learning Management System (LMS) Integration
- 333 Web Accessibility
- 1.2K ♪ The Green Room
- 9 Additional Learning Products