Forum Discussion
Retrieve text from a shape
is there a way, with a trigger or with JavaScript, to put the text in a shape into a variable?
- Thank you. I do it a little differently in Captivate. It's JavaScript interpreter is very different. 
8 Replies
- MathNotermans-9Community MemberThere are always solutions... but before jumping on this... why you need the text thats in a shape ? A sample always helps best ;-) - JohnnieMooreCommunity MemberI am creating a crossword puzzle. I can accomplish what I want by having a variable for each square. To change the puzzle, I have to reassign each variable. Doable. If I could just change the character in a shape and have the programing get the character, it would be quicker and make it easy to view the entire puzzle. - MathNotermans-9Community MemberI have seen Storyline samples for crossword puzzles. Most use external libraries and use a WebObject to show the crossword puzzle. I made a sample quite a while ago using GSAP and its TextPlugin to do something similar. 
 
 
- MathNotermans-9Community MemberAs said...this is possible...but all depends on how and why you need it. Showing quick and dirty sample here getting all texts in Storyline. - JohnnieMooreCommunity MemberThank you. I do it a little differently in Captivate. It's JavaScript interpreter is very different. 
 
- JohnnieMooreCommunity MemberI am also trying to expand my capabilities with JavaScript. I am 75 and don't learn as quickly as in earlier years. 
- MathNotermans-9Community Memberthe crosswords-js library makes this easiest. 
 https://github.com/dwmkerr/crosswords-js
- JohnnieMooreCommunity MemberMuch appreciated. 
Related Content
- 6 months ago
- 4 months ago
- 11 months ago