-
1. Re: Bold in dynamic Text
kglad Nov 1, 2010 9:15 AM (in response to leaflashdev)if you embed fonts for a textfield you need to embed all fonts/styles you want to use in that textfield.
-
-
3. Re: Bold in dynamic Text
kglad Nov 1, 2010 9:57 AM (in response to leaflashdev)in your code you assigned Arial only so your textfield can't use ArialBold and you would expect to see the same problem you described above.
the easiest (but not necessarily best) way for you to do this is to add a (hidden) textfield and embed arial bold in that textfield.
-
4. Re: Bold in dynamic Text
leaflashdev Nov 1, 2010 11:31 AM (in response to kglad)It's working thank you !
-
-
6. Re: Bold in dynamic Text
leaflashdev Nov 1, 2010 12:50 PM (in response to kglad)I have one more question
the dynamic text is set with a scrollbar component
It is possible to insert in the middle a checkbox component ?
Thanks you
-
7. Re: Bold in dynamic Text
kglad Nov 1, 2010 1:19 PM (in response to leaflashdev)yes:
tf.htmlText = "<img src='CheckBox' />"; //as2
-
8. Re: Bold in dynamic Text
leaflashdev Nov 1, 2010 1:30 PM (in response to kglad)oo yeah ??
and "checkBox" is the export MC name of the movieClip in my library ?
i am in as3
And i need to interact with this check box
Thanks
-
9. Re: Bold in dynamic Text
kglad Nov 1, 2010 1:34 PM (in response to leaflashdev)CheckBox is the checkbox component's class (in as2). in as3, use:
tf.htmlText="<img src='fl.controls.CheckBox' id='yourCB' />";
(and, in both, you need a checkbox component in your library.)
-
10. Re: Bold in dynamic Text
leaflashdev Nov 1, 2010 2:00 PM (in response to kglad)oo That is great ! thanks a lot
never know that we can do that via HTML
But now I have some difficulties to control my checkbox button
Like add a Click MouseEvent
remove the label
And i hope this is my last question
Thanks a lot for your help
-
11. Re: Bold in dynamic Text
leaflashdev Nov 1, 2010 3:05 PM (in response to leaflashdev)any guess ?
-
12. Re: Bold in dynamic Text
kglad Nov 1, 2010 5:50 PM (in response to kglad)use:
tf.htmlText="<img src='fl.controls.CheckBox' id='yourCB' />";
var yourCB:CheckBox = CheckBox(tf.getImageReference("yourCB"));
yourCB.addEventListener(Event.CHANGE,f); -
13. Re: Bold in dynamic Text
leaflashdev Nov 2, 2010 8:19 AM (in response to kglad)Amazing it works great Thanks
Just a wierd space that I get
I tried to set the width , but still i have this huge space
here is my code
yourCB.label = '';
yourCB.setSize(5,5);
yourCB.labelPlacement = "top";
yourCB.width = 5;
and this is my html code if it can help
....contamination.<br><br><img src='fl.controls.CheckBox' id='CheckBoxMC' />I have read and understand....
Thanks
-
14. Re: Bold in dynamic Text
leaflashdev Nov 2, 2010 10:03 AM (in response to leaflashdev)any guess about this space ?
-
15. Re: Bold in dynamic Text
kglad Nov 2, 2010 10:19 AM (in response to leaflashdev)positioning in a dynamic textfield is part black-art. i don't have any easy fixes for you.
you can google that issue and get an idea of what can be tried/done.


