|
-
Member Mofo
URL encoding troubles
I have html formatted text getting placed into a dynamic text box and everything works perfectly, except that I'm trying to write this:
Code:
for (i=1; i<=10; i++){
trace ("i = "+i);
}
and I need to replace "<" with "%3c" for URL encoding, but it won't let me do it. It seems like it's replacing the "%3c" with a "<" and then treating it like it a tag bracket again. But I can do "%3e" for ">" with no problems at all.
-
Yeah! Talk to me about it! Bumped on that one a long time ago...
Finally came up with this solution...
To print a "<", in your text file -> %26lt; HELLO %3E...
Should output "< HELLO >"...
-
Member Mofo
Old newbie,
Thanks for the help. I also just found another solution. If I put <pre> and</pre> around it, I can type whatever I want with no URL encoding!!!
so <pre> <HELLO%> </pre> will give me <HELLO%>
-
Well good for you! Problem is that doesn't seem to work in MX only and most certainely didn't in Flash 5 at the time I needed this!
-
Member Mofo
must be new to MX 2004. It's a standard html tag that I didn't know.
-
Using CSS on this?
To my knowledge, this is still (even for MX2004) the only officially 11 or so html1.0 tags supported by Flash, although the <li> tag somewhat works...
http://www.macromedia.com/support/fl...s/htmltext.htm
-
Member Mofo
Yes, I am using CSS. I didn't think that would make a difference, but I guess it does - although I didn't officially test it without CSS.
BUT, this wasn't used in the CSS itself, I added it to the text. So my actual text file is this:
Code:
<c><pre>for (i=1; i>=10; i++){
trace("i = "+i);
}</pre></c>
Where "<c>" tag is from the styleSheet and I just added "<pre>.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|