Actions - can't find actions, is there an advanced action menu?

nakram1001
Community Member Posts: 8
Hi all,
I was just working on something and needed create a onMouse DoubleClick action, but my action option's are very few in Lectora. All I have is Page Show, Object Hide/Show, Mouse click/enter/exit/right click.
However, the help file suggest that there are many other actions available:
Any Key
Hide
Keystroke
Mouse Click
Mouse Double-Click
Mouse Enter
Mouse Exit
Show
Show Page
Done Playing
Any Key
Right Mouse Click
Timer
I can't locate any of these. Any ideas where they are?
TIA.
I was just working on something and needed create a onMouse DoubleClick action, but my action option's are very few in Lectora. All I have is Page Show, Object Hide/Show, Mouse click/enter/exit/right click.
However, the help file suggest that there are many other actions available:
Any Key
Hide
Keystroke
Mouse Click
Mouse Double-Click
Mouse Enter
Mouse Exit
Show
Show Page
Done Playing
Any Key
Right Mouse Click
Timer
I can't locate any of these. Any ideas where they are?
TIA.
Comments
-
-
Oh, sorry, I'm not sure about what objects have what triggers or what publishing mode you have to be in to see them. If you want to use some JavaScript to insert a double click event listener on a certain page then add a run JavaScript on the show of the page with the following:
document.getElementById('shapeXXX').addEventListener('dblclick', function(){
/* do your code here */
});
Replace the shapeXXX with your transparent hot spot shape HTML Name. Reply if you need further assistance with the code and I or someone else here will surely help you out.
-
-
-
Ever since you asked that question I have tried to find any object that has a double click trigger and I can't find one. I've tried different publishing modes too. Nothing. Anyone else in the forum know how to bring up a double click trigger?
Until then you can use the JavaScript I suggested. Private message me of you need help with it. -
The double-click trigger has been available until Lectora v11 (i don't know if it existed in v12) for actions on buttons, images and shapes. It has only ever worked when publishing to formats using the Lectora Viewer (CD / EXE), not when publishing to be viewed in a browser (I thought browsers don't support double-clicks).
To create a double-click you can use Darrels code or Jennies approach by placing a transparent button over your hotspot. Add two actions to the button:
1.
On: Click
Action: Hide
Target: This object
2.
On: Hide
Action: Show
Target: This object
Delay: 0.5 sec
This way the real hotspot can only be clicked during the .5 seconds while the transparent button is hidden.
Other triggers only exist for certain objects:
Some triggers are only available for actions added to the page itself:
On: Keystroke (It's not possible to press [Enter] for an image only ;-)
On: Any key
On: Device rotation
On: Screen Swipe Left
On: Screen Swipe Right
Why not add "Up" and "Down"?
On: Timed Interval
Some triggers are only available for actions on certain objects:
On: Done playing
Only available for videos and audios, i.e. for "playable" objects.
On: Select / Change
Only available for form objects that can be selected, e.g. radio buttons, checkboxes, input field.
Tim
-
-
Categories
- 35.8K All Categories
- 109 ✫ Announcements
- 33.1K Lectora®
- 31.1K Lectora Discussions
- 28.9K Lectora Desktop
- 2K Lectora Online
- 2K Lectora Feature Requests
- 71 Lectora User Groups
- 36 Lectora Accessibility User Group (LAUG)
- 22 ELB Learning Content
- 22 ELB Learning Content Discussions
- 321 CenarioVR®
- 188 CenarioVR Discussions
- 133 CenarioVR Feature Requests
- 41 Rockstar Learning Platform®
- 38 Rockstar Learning Platform Discussions
- 108 CourseMill®
- 108 CourseMill Discussions
- 47 ReviewLink®
- 47 ReviewLink Discussions
- 7 The Training Arcade®
- 7 The Training Arcade Discussions
- 934 All Things eLearning
- 36 eLearning Development
- 546 Learning Management System (LMS) Integration
- 332 Web Accessibility
- 1.2K ♪ The Green Room
- 9 Additional Learning Products