carriage return in xml

FLASH

    Next

  • 1. Actionscript and ALT+TAB
    Ok, I am not one to typically post to message boards, but this has been driving me CRAZY forever, and I want to mount a full-forced attack on Macromedia to get them to change this (non-violent of course) - Whenever I'm working in an Actionscript window and using another app at the same time (be it Photoshop, or looking at some tutorials in IE), if I switch back to my open Flash doc (generally with ALT+TAB) and try to start typing where I left off, I get reminded that the ActionScript window loses focus and I'm now doing things I don't want to on the stage.... I then have to click back on the Actionscript window (and possibly find the item I was appending script too first), find where I was again, and resume my code... Maybe I'm just being a bastard by whining about this extra half a second of work, BUT IT's FRICKIN ANNOYING Please, if you put nothing else into MX 2005 (or whatever), please please please fix this, it's a source of constant aggrivation (kind of OCD i know), but I think it would be another step towards making Flash a friendlier environment to develop in...
  • 2. Fill in the blanks learning interaction
    Hi Everyone ! I am working on a fill in the blanks quiz using Learning Interactions template since I need the quiz to be SCORM compliant. One of the exercises has two entries in the same question. Here's an example: 1) Macromedia Flash is a powerful ................. for developing rich ................ content. As far as I know, using those templates I can only set one blank. There is any way to set more than one as in the previous example. I would appreciate your help at XXXX@XXXXX.COM . Thanks in advance, Chris [E= XXXX@XXXXX.COM ] XXXX@XXXXX.COM [/E]
  • 3. Key Deactivation
    I have a flash animation where when you press on a arrow key the movie instance on the screen moves. And I also have it set up so when you press a certain other key like the A key or S it plays the movie instance. But my problem is when the animation is playing the arrow keys still work and can move the instance while playing. I want it set up so when the keys (A and S for example) are pressed the movie not only plays but the arrow keys are deactivated untill the movie instance stops playing. Any idea what to put. Anything will help. Thanks
  • 4. Attn. Mr.Andrew Chemey
    (If you already read my message please ignore it. B'cause i desperately want your help, i am sending it once again) Sir, It works perfectly. Thank you for the detailed notes on this. But the problem now i am facing is that i want to include multiple fill in the blanks questions in the same screen(ie, questions based on a specific topic and its blanks). Can i add more questions to the component parameter window, as you add the check boxes ? Or i have to add Interaction_ID. And what is the use of this interaction _ID Expecting your valueable reply Thanking u once again, MVN

carriage return in xml

Postby dave » Wed, 27 Jul 2005 17:47:26 GMT

Is it possible to have a carriage return in a text string within my xml 
file?

I have tried using \r but this simply appears in flash as \r 



Re: carriage return in xml

Postby dr_ross » Wed, 27 Jul 2005 18:51:19 GMT

different ways to go about this

 1 would be to use the html text property of the textfield and pass the text 
through a custom function to convert it to html format i.ie adding tags etc 
before adding it to the text field

 2 have a custom delimiter for your project like /n or something, split the 
string at every instance of your custom delimter into an array, then do a for 
loop adding each entry to the same string but with  += newline after every entry

 var new_str = ""

 for(var i=0;i<=splitString_array.length-1;i++){

 new_str+= splitString_array;
 new_str+= newline;

 }

 job done, you can use the second version for replacing your custom delimiter 
for what ever you link, i use it for bullet point, custom hot text etc, but the 
first version is a bit easier and lets use you all the html and ascii key codes 
straight off.


Re: carriage return in xml

Postby dave » Wed, 27 Jul 2005 19:15:09 GMT

Thanks for that, I thought it might be to do with escaping or unescaping.









Similar Threads:

1.Carriage returns in XML Excel sheet created using XmlDocument and XmlTextWriter

Hi,

I've a routine that exports a DB query to Excel by building an
XmlDocument and saving to a XmlTextWriter. I'm having trouble with
carriage returns in a mailing address not showing up in the final Excel
sheet.

What's added to the InnerText of an XmlDocument is something similar
to:

"Name \r\nAddress1\r\nAddress2 \r\nAddress3 \r\nAddress4\r\n"

After going through the XmlTextWriter the resulting XML is:

</Data></Cell><Cell ss:StyleID="s26"><Data ss:Type="String">
Name
Address1
Address2
Address3
Address4

And what appears in the address cell of the Excel sheet is:
Name Address1 Address 2 Address 3 Address 4

I posted a similar topic yesterday and spent much of today working on
the issue without success, trying out various combinations of:
space = "preserve" in the XML
XmlDocument.PreserveWhitespace = true
XmlTextWriter.WriteAttributeString("xml", "space", null, "preserve");

Can anyone assist?

Many thanks,

Simon Lane

2.Line Feed & Carriage Return with XML?

Dear :

I have XML File like :

<Root>
<Body>
Large Text 
</Body>
</Root>
is there a way to provide a Line Feed for the Large text like (\n\r) in many 
programming languages.

Regards

3.Carriage returns and XML

Hi everyone

I have a problem when I apply an XML Schema to a Word document. It seems 
that I cannot apply an element of type "xs:string" to two paragraphs because 
of the carriage returns. It's just applied to the first one. I'm sure I'm 
doing something wrong.

-- 
Regards

Jorge



Return to FLASH

 

Who is online

Users browsing this forum: No registered users and 77 guest