-
1. Re: Displaying a fraction with a horizontal bar between the denominator and numerator
dmennenoh Nov 1, 2014 5:32 AM (in response to getnaleen)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.
-
2. Re: Displaying a fraction with a horizontal bar between the denominator and numerator
getnaleen Nov 1, 2014 7:16 AM (in response to 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?
-
3. Re: Displaying a fraction with a horizontal bar between the denominator and numerator
Ned Murphy Nov 1, 2014 7:26 AM (in response to getnaleen)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.
-
4. Re: Displaying a fraction with a horizontal bar between the denominator and numerator
dmennenoh Nov 2, 2014 4:19 AM (in response to getnaleen)Ned's right, just keeping it as 2/3 would probably be fine. However, it's not very difficult, or time consuming, to do it the way you'd like. Using the way I suggested I put a little test together. 20 lines of code. Works pretty good. Have a look if you'd like. I placed the .fla up on Box
-
5. Re: Displaying a fraction with a horizontal bar between the denominator and numerator
getnaleen Nov 13, 2014 3:19 AM (in response to getnaleen)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




