Explore the community Forums Lectora Lectora Questions & Answers Lectora 17: Accessing shape properties in javascript Reply To: Lectora 17: Accessing shape properties in javascript

#367018 Score: 0
Profile photo of Nick Mizer
Nick Mizer
Member
beginner
intermediate
picture perfect
wise owl
friend finder
curious george
@nmizer6275

Thanks, that works great!

The only thing I’m having trouble with now is clipping. I am also changing the width of that shape (using Tweenmax). The shape changes width, but will not display longer than it’s original width. I’ve tried to set the clip property to auto with js and with css.

JS attempt:

var container = getDisplayDocument().getElementById(“shape658”);
container.style.clip = “auto”;

CSS attempt (with shape set to “selector” in through the appearances panel in Lectora) :

.selector {
clip: auto;
}