As a workaround for this one: Allow selection of objects in separate groups from Title Explorer – can currently only select objects in different groups via the canvas
You can select multiple objects in separate groups by freehand dragging a rectangle around the wanted objects in the stage-view. Offcourse this is limited, but sometimes its a workaround when selecting objects in separate groups.
Doing it like this, you select all elements which bounding box falls completely within your drag-selection.
As you say, changing content of a textfield removes all formatting. I solved that in several solutions by applying the formatting again after you changed content on a textfield…
Change Content -> Target: sometextfield -> Set Text ->Var(Question_Score)
If you use GSAP-Tweenmax this works perfectly
TweenMax.set(sometextfield,{color:blue,fontSize:24,fontWeight:”bold”, fontFamily:”Arial”, textAlign:”left”});
In fact you can tween/animate the formatting 😉
If you dont use GSAP-Tweenmax use this..
var tf = getSpanWithClass(“text39Font1”);
tf.style.fontSize = “45px”;
tf.style.fontColor = “#006400”;
function getSpanWithClass(cssClass) {
var elements = document.getElementsByTagName(‘span’);
for (var i = 0; i < elements.length; i++) {
if((‘ ‘ + elements[i].className + ‘ ‘).indexOf(‘ ‘ + cssClass + ‘ ‘) > -1) {
return elements[i];
}
}
}
The function getSpanWithClass is a custom function i use a lot to get to the actual texts in Lectora… all dumpled in spans…
This post has received 1 vote up.
This reply was modified 2 years, 9 months ago by Math Notermans.
Actually grouping actions into an action group is in a lot of cases better.
Imagine you want to add some action to occur in the same line of events…
Or want exact the same set of actions to happen on other parts of your project.
In all these cases it works better to group actions into an actiongroup and call them alltogether with one action run_actiongroup. Also when you need a reset or undo option… copy the actiongroup, and reverse all the actions in it… and bingo you have a reset or undoGroup
First you need some way to select the element. The function given returns the text of a textfield with
the given css-class.
var myText = getText(“.someCssClass”);
console.log(myText);
The function and approach below dont use any extra libraries and still get the text of any given textfield:
function getText(_cssClass){
var elem = document.querySelector(_cssClass);// targets a textfield with class someTextfield
var text = elem.textContent; // target the text content
return text;
};
Yes it is possible. Basically any Inspire version, you can use external javascript libraries to achieve what you want.
With version 17 you can keep a page scenario and achieve it like you want using seamless play. With older versions..well you have to build a real one-page to hold all pages you use.
Here you find a sample of a solution like that i made a while ago.
DragonSpeakingNaturally… from Nuance ( https://www.nuance.com ) is one of the best voice recognition tools and with it you can literally control your computer by voice…but its pricey.