Skip to main content
Inspiring
November 1, 2014
Question

Displaying a fraction with a horizontal bar between the denominator and numerator

  • November 1, 2014
  • 2 replies
  • 1834 views

Hello guys

I have a dynamic textfield and am going to display textual content in it dynamically.

But I have a fraction in that textual part and I want to display that fraction as a "typical fraction with a horizontal bar between the denominator and numerator". Hope you understand what I am asking.

Please look at the attached image.

Thanks for your input.

cheers

This topic has been closed for replies.

2 replies

getnaleenAuthor
Inspiring
November 13, 2014

Guys thanks a lot for all of you.

Your input was so great and I appreciate all of your time and effort reply this post.

I understand what you say and also agree with you that it can be done using little bit of coding lines.

But my point is, that approach is not very productive.

How about using an style sheeet and use the text as a html text?

Or how about using captivate maths functions?

cheers

Nathan

Inspiring
November 1, 2014

I would probably make a fraction movie clip, with two text fields and the line in it. Instance it from the library, fill in the text, and place where needed.

getnaleenAuthor
Inspiring
November 1, 2014

@dmennenoh

Thanks for your input.

So its kind of superimposing Sprite or MovieClip that has a fraction.Basically I have to make two textfields and put them together over a horizontal bar so that it looks like a fraction and then place it over a big textfield where the fraction should be.

Its a very long process.

OMG, isn't there any other easy way to do this?

Ned Murphy
Legend
November 1, 2014

You could probably find a special character font contains various common fractions and use some htmlText to change to that font and character.  Though that would be chancy and would not cover uncommon fractions or the user's lack a specific font.

I would just leave it as 2/3.  It is a common way of displaying fractions in sentences.