VR Course Contest
Show us your best virtual reality course and win $50 gift card and a winner badge!
CHECK IT OUT
How to Fire an Action when a Move Action Completes

mmackinnon2873
Community Member Posts: 6 ☆ Roadie ☆
Hello,
I was wondering if anyone knows if it is possible to get Lectora to fire an action or action group when a Move action completes?
For example say I have a text box in Lectora that slides in from off the screen. Is there any way to make a button go from hidden to shown as soon as the text box finishes sliding, and not before. Delaying the actions manually isn’t ideal as different sliding animations have different durations.
I plan on using this to fire JavaScript functions with specific timing if it makes a difference.
Any help on how I could do this or where I could find additional information would be greatly appreciated. I have access to both Lectora 11 and Lectora 12, though the project that this will be used in is being built in Lectora 12.
I was wondering if anyone knows if it is possible to get Lectora to fire an action or action group when a Move action completes?
For example say I have a text box in Lectora that slides in from off the screen. Is there any way to make a button go from hidden to shown as soon as the text box finishes sliding, and not before. Delaying the actions manually isn’t ideal as different sliding animations have different durations.
I plan on using this to fire JavaScript functions with specific timing if it makes a difference.
Any help on how I could do this or where I could find additional information would be greatly appreciated. I have access to both Lectora 11 and Lectora 12, though the project that this will be used in is being built in Lectora 12.
0
Comments
-
Sounds like a job for GSAP.
// Function created to show initially hidden button
function myFunction(){
btn.style.visibility = "visible";
};
// Variables created for button and box. Make sure you use the HTML Name in your project
var btn = document.getElementById("button351");
var box = document.getElementById("shape38");
// GSAP Tween animates box from off screen and when movement is complete fires off function
TweenMax.to(box, 2, { x:600, onComplete:myFunction });
See attached. The awt is inside zip too.
Hope this helps.
Darrel
0 -
Thanks Darrel,
I have used GreenSock before and was hoping to stay away from bringing in another external library. I was hoping that there would be a solution native to Lectora, but after talking with Trivantis Support it seems like it's just not something Lectora can do.0
Categories
- 4.4K All Categories
- 35 ✫ Announcements
- 6 ✪ Contests
- 34.1K eLearning Brothers® Products
- 97 Lectora®
- 1.1K Lectora Discussions
- 1.9K Lectora Feature Requests
- 53 Lectora User Groups
- 2 AssetLibrary™
- AssetLibrary Discussions
- 2 AssetLibrary Feature Requests
- 67 CenarioVR®
- 110 CenarioVR Discussions
- 77 CenarioVR Feature Requests
- 2 Rockstar Learning Platform®
- 1 Rockstar Learning Platform Discussions
- 1 Rockstar Learning Platform Feature Requests
- 4 Off-the-Shelf Course Library
- 3 Off-the-Shelf Course Library Discussions
- 1 Off-the-Shelf Course Library Feature Requests
- 1 CourseMill®
- 101 CourseMill Discussions
- ReviewLink®
- 21 ReviewLink Discussions
- 12 ReviewLink Suggestions
- 1 The Training Arcade®
- 1 The Training Arcade Discussions
- The Training Arcade Feature Requests
- 7 Additional Learning Products
- 2 Adobe®
- 2 Articulate®
- 1 Camtasia®
- Docebo®
- 1 iSpring®
- 1 Microsoft® PowerPoint®
- 292 All Things eLearning
- 3 Course Development Showcase
- 1 eLearning Brothers® Downloads
- 1 Compliance Training
- 4 eLearning Development
- eLearning Game Design
- 7 Instructional Design
- 266 Learning Management System (LMS) Integration
- 2 Mobile Learning
- 2 Visual Design
- 319 Web Accessibility
- 579 ♪ The Green Room
- 2 ♡ Community Feedback
- 6 Community Tips