Copy link to clipboard
Copied
I want to fill a caption with the content of a variable. Is it possible
to include the CR (new line) in the variable?
Copy link to clipboard
Copied
Hello,
Up till now couldn't find a way to insert a CR in a variable, or to show it when a variable is displayed in a Text Caption. Even when you populate a 'small' Text Caption that is set to autmatic resizing with a long variable content, there is no wrapping. Inserting a CR when defining a value for the variable, either in the dialog for variables or by a TEB is not possible either. One can define a 'spacer' as a user variable, but cannot find a way to definie 'CR' as a user variable. Perhaps someone else will pop in, but anyhow I would suggest to introduce a feature request (form is in the main page of these CP-forums).
Lilybiri
Copy link to clipboard
Copied
I found a solution!
In ActionScript:
stop();
_root.userReturn ="\r";
Suggestions for enhancements are welcome
Copy link to clipboard
Copied
Hi Chris,
That would be great, but something is wrong with the URL! Under Captiweet I cannot find the reference (and I do understand Dutch). Could you check?
Lilybiri
Copy link to clipboard
Copied
Hi Lilybiri
I just right-clicked the link and was able to save the SWF to my hard drive.
Cheers... Rick ![]()
| Helpful and Handy Links Captivate Wish Form/Bug Reporting Form |
Copy link to clipboard
Copied
You can now also use this link: http://www.dorna.nl/captiweet/userreturn/userReturn.zip
Copy link to clipboard
Copied
Thanks, Rick, Chris. Sorry that I was so stupid,
Lilybiri
Copy link to clipboard
Copied
Possibly you can use the same principle with JavaScript?
Copy link to clipboard
Copied
I've always used "\n" as a Line Feed Carriage Return in AS3 (minus the quotes). I know it works when setting Cp User Variables via JavaScript. I've also used \n in the quiz results page to output a custom "sorry you failed" or "congratulations, you passed" message.
HTH,
Jim Leichliter
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more