Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.
Hi.
I am trying to set the visibility of a shape (S1) via a button in KM.(Trial)
Still learning JS, so I pulled some sample code off the net to see if I could crack it myself but with no luck…
Tried these combinations:
S1.style.visibility = “hidden”;
S1.style.display = “none”;
S1.display = “none”;
Any help would be greatly appreciated
D.K
Html5 export is based on CreateJS animation framework which is written in javascript.There is a layer of javascript on top of that which I added but basic object manipulation comes from CreateJS.
To turn visibility off:
S1.visible = false;
S1 should probably be defined as a global variable (set Is programmable to yes in S1’s property panel).
see https://www.createjs.com/docs/easeljs/classes/DisplayProps.html
In the javascript editor, pressing the + icon and selecting display object/properties/methods should provide object property syntax but I see ‘visible’ is missing. There are some others which also need to be added.
These tips really work full and worthy tips thank you so much.
You must be logged in to reply to this topic.