flash xml Q
- Started
- Last post
- 22 Responses
- stewart0
i think the FF DIN is the problem? because hyperlinks do work now...
when i embed the outlines for DIN Bold & DIN Regular everything in between the bold tags disappear when i view the swf...
- st33d0
Whitespace stripping doesn't work non-browser apparently. I've used functions to strip whitespace with good effect.
updated paste bin with an xml stripper.
http://pastebin.coconut.se/?id=4…
If you've still got an issue it might be that you've formatted the text in the CDATA section with tabs. You can't do that. Period. Flash HTML reads all whitespace, it's a bit shit like that.
- joyride0
wait, what do you mean tabs?
could you post the xml in the pastebin also
- joyride0
does the tab variable trace out with data or is it just not showing up in the textfield?
- stewart0
st33d
i figured something out... seems to work now.
the only problem i have now that i can't get rid of the 'tabs' that i use in the xml. they also show up as whitespace in the textfield.
this is how i load the xml
http://pastebin.coconut.se/?id=4…
- st33d0
Bugger, hang on....
- st33d0
Like this?
myXML = new XML('mylink]]>');
node = myXML.firstChild.firstChild;
this.createTextField("txt", this.getNextHighestDepth(), 0, 0, 300, 100);
txt.html = true;
txt.htmlText = node.nodeValue;
- stewart0
basically...
i want to do with xml what i did with .txt
in a .txt file i can for example add hyperlinks with actionscript code...
like this: http://pastebin.coconut.se/?id=4…
i think i'm going back to .txt then?
- stewart0
exactly Timson. that's what i do.
but without success till now.
still searchin...
- Timson0
you sure you use:
textfield.htmlText="blah"; instead of textfield.text="blah";cause that's where i mostly mistake... .
- stewart0
pony?
- PonyBoy0
well FUCK...
... nevermind...
... i posted some lovely cdata including actionscript and xml examples...
... and QBN said... NO!!
but I can type the FUCK in all caps over and over again...
... readY?... WATCH!
FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK FUCK
:(
- PonyBoy0
use CDATA...
the tags may look screwy... NT doesn't let you render tags for script examples, so I staggered the '
- stewart0
yes i do use CDATA tags for bodytexts...
but in that case it's showing the complete htmltag a href= bla with all the 's
- stewart0
yes i do use CDATA tags for bodytexts...
- Timson0
are you using CDATA tags in your xml document?
http://www.flashdeveloper.nl/g_f…
- stewart0
"Flash will figure it out"
hmmm, i have the textfield 'Render text as html' ON.
but the email link tag in the XML document is read as a XML node.
as a result the place where the emailaddres should be placed in the text is empty...
- UndoUndo0
not if yr using html text fields
- st33d0
Err, wont the tags be recognised as an XML element? Surely that's the real problem.
(I solved this problem myslef but not in a pretty way.)
- joyride0
make the flash text render as HTML and then just include the tags in the xml doc. The tags should look like regular html link. Flash will figure it out