18 Replies Latest reply on Jul 9, 2008 12:40 PM by kglad

    Displaying Greater Than or Equal To

    Rothrock Level 5
      I typed out a fairly lengthy description of what I was trying to do, but for some reason the forum complained that I had improper words in my description and then ate my description. So anybody know how to do this?
        • 2. Re: Displaying Greater Than or Equal To
          Rothrock Level 5
          Nope that was the worst word I had in my original post, but that isn't it.
          • 3. Re: Displaying Greater Than or Equal To
            Rothrock Level 5
            Got CDATA node in my XML. I've tried \u2265 and ≥ and just pasting the character, but none of those display correctly.

            Actually they display the gte character but in some strangely disproportioned font.
            • 4. Re: Displaying Greater Than or Equal To
              Rothrock Level 5
              Nope it wasn't any of those words.

              Okay I tried using the < img > tag but it didn't display in-line. Just stuck the images off to the left side. They were pretty though....
              • 5. Re: Displaying Greater Than or Equal To
                Rothrock Level 5
                Nope none of those. How about

                dynamic text
                htmlText
                embedding
                mixed bag
                sometimes appears, sometimes doesn't
                no rhymne nor reason?
                • 6. Re: Displaying Greater Than or Equal To
                  Rothrock Level 5
                  Nope. Well beats me what the original bad word was.
                  • 7. Re: Displaying Greater Than or Equal To
                    kglad Adobe Community Professional & MVP
                    you're having quite a conversation with yourself. are you giving yourself good advice?
                    • 8. Re: Displaying Greater Than or Equal To
                      clbeech Level 3
                      lmao kg!!! :D

                      RR - isn't it: &lt; - &gt;
                      • 9. Re: Displaying Greater Than or Equal To
                        Rothrock Level 5
                        kglad -- I spent about two hours trying to get the problem worked out and about 15 more to type up my questions -- only to have the forum object to some mysterious word and delete my unposted opus! So I went a little crazy...

                        clbeech -- that is less than and greater than. I need greater than or equal to and less than or equal to:

                        >=
                        <=

                        But in the fancy way ≥ and ≤.
                        • 10. Re: Displaying Greater Than or Equal To
                          Rothrock Level 5
                          Even those look a bit strange here, but the Arial Narrow ones in Flash are much to tall and angular for the surrounding font.
                          • 11. Re: Displaying Greater Than or Equal To
                            Rothrock Level 5
                            Even those look a bit strange here, but the Arial Narrow ones in Flash are much to tall and angular for the surrounding font.
                            • 12. Re: Displaying Greater Than or Equal To
                              kglad Adobe Community Professional & MVP
                              i don't see a problem using arial narrow and displaying gte.
                              • 13. Re: Displaying Greater Than or Equal To
                                clbeech Level 3
                                my bad RR - how about: &le; -&ge;

                                course i see what your getting at though - maybe a symbol font sub?
                                • 14. Re: Displaying Greater Than or Equal To
                                  Level 7
                                  Use NNTP, my brotha. ;)


                                  David
                                  stiller@quip.net

                                  P.S., like beech, I'm still cracking up over the good doctor's question.


                                  • 15. Re: Displaying Greater Than or Equal To
                                    Rothrock Level 5
                                    Flash doesn't seem to recognize &le; or &ge; The problem isn't that I can't get the character to show it is that Flash is substituting a device font version that is ugly.

                                    Both &#8805; and \u2265 display as a version of greater than or equal to, but if you put it right next to greater than, they don't look good together.

                                    Okay I've finally had enough time away from this to try some sensible tests of my own. I made two dynamic text fields on the stage. One is html enabled and one is not. I then paste this code into the frame.

                                    field1.html=true;
                                    field1.htmlText="&#8805; \u2265 &gt; Hello world.";
                                    field2.text="≥ > Hello world.";

                                    The first time around they look the same, but if I embed the font form field 2, they look different. (Evidently you can't embed fonts for htmlText?)

                                    I couldn't find which range contains ≥ so I just added it as a special character in the embed dialog.

                                    So the XML is a red-herring, so to speak, the problem has nothing to do with the XML.

                                    So my other question was about using <img> tags for inline graphics. I though maybe I could just use a little png of the symbol. And sure enough I was able to load the png, but it always just went over to the left side of the text field. I tried using the align attribute, but Flash didn't seem to parse that.

                                    So is there anyway to use <img> to just have a graphic appear in the middle of a sentence or any other place you might want?

                                    • 16. Re: Displaying Greater Than or Equal To
                                      Level 7
                                      Rothrock,

                                      > The first time around they look the same, but if I embed the font
                                      > form field 2, they look different. (Evidently you can't embed fonts
                                      > for htmlText?)

                                      You can indeed embed fonts for HTML formatting. The only tricky part
                                      (at least, that I've seen) is that you need to also embed font variants
                                      (bold and italic, for example) if you plan to use embedded outlines and use
                                      tags like <b> and <i>.

                                      I'm not seeing the issues you're seeing, but maybe it's dependent on the
                                      typeface in use? Not all typfaces include all characters. Just playing
                                      around here, I'm using silly fonts like Broadway, Blackadder, and I'm seeing
                                      the characters you're after just fine, using the &lt; and &gt; entities.

                                      > So is there anyway to use <img> to just have a graphic appear in the
                                      > middle of a sentence or any other place you might want?

                                      That, alas! doesn't appear to be possible. The linebreak is built-in --
                                      in all the tests I've ever tried -- so while there may be some wacked-out
                                      way to play with registration points ... I don't think it's possible.


                                      David Stiller
                                      Adobe Community Expert
                                      Dev blog, http://www.quip.net/blog/
                                      "Luck is the residue of good design."


                                      • 17. Re: Displaying Greater Than or Equal To
                                        Rothrock Level 5
                                        Thanks David. I've pretty much decided it isn't worth it. If the client is upset that the greater than or equal to symbol doesn't look right we will just spell it out in words!

                                        As for the embedding, really? I know I've done it with embedded library fonts, but it seems that if you just embed using the panel then it doesn't work. At least not for me in this case. In the example I gave above, using just the fields as created on the stage and the code I listed, as soon as I embedded the font (using the panel) the first text box showed nothing -- not the words, not the symbols, nothing. There is nothing in that code to suggest that I'm changing the styling or anything.

                                        As for the symbols showing up, they are showing up, but not in the right way. For example even here in my post (using the web browser) this line:

                                        field2.text="≥ > Hello world.";

                                        doesn't look right. The gte is much larger and far too sharply angled when compared to the gt. I'm guessing in your reader it looks fine. It really is something that only someone who really gets into fonts would probably notice. Although the discrepencies I see in my file are even more jarring. I wish it was easy to post an image here and I could really show all y'all what I'm seeing.

                                        Anyway thanks.

                                        The font I am using is Arrial Narrow and it does contain the character, but from the unicode number (and the lack of a windows alt-sequence) I'm guessing it is "way up there" and not something that Flash is understanding.

                                        • 18. Re: Displaying Greater Than or Equal To
                                          kglad Adobe Community Professional & MVP
                                          if you're using a cdata section you can use the left and right angle brackets and equal signs. you don't need to encode them. and again, i don't see a problem with any font (that includes those symbols). in particular, i see no problem with arial narrow.