Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
johnny_XP #1
Insert break in XML document
Is there any way to insert a break <br> in xml document as in html? If no is there any other way to insert a new line when send a node value in Flash?
johnny_XP Guest
-
Create New Document from Insert Bar
I'm trying to develop a small suite of tools that will be run from a group in the Insert Bar. I have a command that works OK from the 'Commands'... -
BIG document insert to database problem
Hello. I have this BIG problem, have tampered with this for weeks now. I try to insert a record to an Access database (memo-field). Everything works... -
How do I break a large document into smaller documents
Hi, Using InDesign cs, if I have one document that is 200 pages long and I would like to break it into separate chapters and then recombine it into... -
Insert Word Document
I'm having trouble trying to insert a Word document onto a page. I would like to have the document (a testimonial letter), appear exactly at the... -
Document, Pages, Insert
OS = Windows 2000 Pro; Dell Pentium 4; 512 MB memory using Adobe Acrobat 6 I want to insert multiple pdf documents as a group into a single... -
MOLOKO #2
Re: Insert break in XML document
johnny_XP wrote:
for node values (*not* attributes), you can wrap it in CDATA tags and> Is there any way to insert a break <br> in xml document as in html? If no is there any other way to insert a new line when send a node value in Flash?
then happily stick html tags of any kind in there.
If you don't use CDATA, you can still make it work with HTML tags, but
each tag will be treated as a separate node which is a real pain.
sample data:
<textContent><![CDATA[ However, you’re not alone - Marwan has beaten you
to it! He’s been in his office for an hour or so, and has sent you an
email regarding what’s going to be discussed at the meeting. Click
<b>Message</b> to read it.<br/><br/>When you're ready to continue,
click <b>Next</b>.]]></textContent>
--
MOLOKO
------------------------------------------------
::remove _underwear_ to reply::
'God saves but Buddha makes incremental backups'
------------------------------------------------
GCM/CS/IT/MC d-- S++:- a- C++ U--- P+ L++ !E W+++$ N++ O? K+ w+++$ !O M+
VMS? PS+++ PE- Y PGP+ t+ 5-- X-- R* tv++ b++++ DI++++ D+ G e h-- r+ y++
see [url]www.geekcode.com[/url] to translate the above!
MOLOKO Guest
-
JLBE #3
Re: Insert break in XML document
Thanks for the answers. Lets be more concrete. I have an xml document like this
<xml
<news
<date>20/2/2004</date
<title>Site Update</title
<contents>Here the contents that will be displayed in a text box component
etc....</contents
</news
</xml
I have a function that reads the xml when laods
function xmlReader()
var jmax:Number
var xmlContents = new Array()
for(var i=0; i<xmlDoc_xml.firstChild.childNodes.length; i++)
jmax = xmlDoc_xml.firstChild.childNodes[i].childNodes.length
xmlContents[i] = new Array(jmax)
for(var j=0; j<jmax; j++)
xmlContents[i][j] =
xmlDoc_xml.firstChild.childNodes[i].childNodes[j].firstChild.nodeValue
//Send the array to a handle
_parent.onXMLLoad(xmlContents)
delete xmlContents
removeMovieClip(eval(this))
So the problem is how to insert a new line in the <contents> tag so when the
value passed in the array and send to the text box the new line appear
JLBE Guest



Reply With Quote

