Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

New line / (carriage) return with variables

Explorer ,
Mar 21, 2010 Mar 21, 2010

I want to fill a caption with the content of a variable. Is it possible

to include the CR (new line) in the variable?

TOPICS
Advanced
3.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 21, 2010 Mar 21, 2010

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 21, 2010 Mar 21, 2010

I found a solution!

  1. Place it on one of the first slides in your project
  2. Make it invisible
  3. Define us uservariable named userReturn
  4. You can paste a return in other variables

In ActionScript:

stop();
_root.userReturn ="\r";

Suggestions for enhancements are welcome

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 21, 2010 Mar 21, 2010

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 21, 2010 Mar 21, 2010

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

Adobe Certified Captivate Training

SorcerStone Blog

Captivate eBooks

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 21, 2010 Mar 21, 2010
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 21, 2010 Mar 21, 2010

Thanks, Rick, Chris. Sorry that I was so stupid,

Lilybiri

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 21, 2010 Mar 21, 2010

Possibly you can use the same principle with JavaScript?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Mar 22, 2010 Mar 22, 2010
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources