flash xml Q
- Started
- Last post
- 22 Responses
- 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...
- Timson0
are you using CDATA tags in your xml document?
http://www.flashdeveloper.nl/g_f…
- stewart0
yes i do use CDATA tags for bodytexts...
- 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
- PonyBoy0
use CDATA...
the tags may look screwy... NT doesn't let you render tags for script examples, so I staggered the '
- 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
:(
- stewart0
pony?
- Timson0
you sure you use:
textfield.htmlText="blah"; instead of textfield.text="blah";cause that's where i mostly mistake... .
- stewart0
exactly Timson. that's what i do.
but without success till now.
still searchin...
- 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...
- blaw0
- UndoUndo0
do it with php as the info comes out of the db
http://uk.php.net/manual/en/func…
there is a function on that page to do it just search the pgae for "email"
- 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
- 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?
- 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;
- st33d0
Bugger, hang on....
- 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…
- joyride0
does the tab variable trace out with data or is it just not showing up in the textfield?
- joyride0
wait, what do you mean tabs?
could you post the xml in the pastebin also
- 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.